summaryrefslogtreecommitdiffstats
path: root/wp-admin/includes/upgrade.php
diff options
context:
space:
mode:
Diffstat (limited to 'wp-admin/includes/upgrade.php')
-rw-r--r--wp-admin/includes/upgrade.php9
1 files changed, 2 insertions, 7 deletions
diff --git a/wp-admin/includes/upgrade.php b/wp-admin/includes/upgrade.php
index 07a4f9f..3d5ce74 100644
--- a/wp-admin/includes/upgrade.php
+++ b/wp-admin/includes/upgrade.php
@@ -21,12 +21,7 @@ function wp_install($blog_title, $user_name, $user_email, $public, $remote) {
update_option('enable_app',$remote);
update_option('enable_xmlrpc',$remote);
- $schema = ( isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on' ) ? 'https://' : 'http://';
-
- if ( defined('WP_SITEURL') && '' != WP_SITEURL )
- $guessurl = WP_SITEURL;
- else
- $guessurl = preg_replace('|/wp-admin/.*|i', '', $schema . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
+ $guessurl = wp_guess_url();
update_option('siteurl', $guessurl);
@@ -889,7 +884,7 @@ function deslash($content) {
function dbDelta($queries, $execute = true) {
global $wpdb;
- // Seperate individual queries into an array
+ // Separate individual queries into an array
if( !is_array($queries) ) {
$queries = explode( ';', $queries );
if('' == $queries[count($queries) - 1]) array_pop($queries);