mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
git-svn-id: https://develop.svn.wordpress.org/trunk@8182 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user