Changeset 8242 for branches/crazyhorse/wp-admin/includes/upgrade.php
- Timestamp:
- 07/02/2008 11:07:56 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/crazyhorse/wp-admin/includes/upgrade.php
r8151 r8242 7 7 8 8 if ( !function_exists('wp_install') ) : 9 function wp_install($blog_title, $user_name, $user_email, $public, $ remote) {9 function wp_install($blog_title, $user_name, $user_email, $public, $deprecated='') { 10 10 global $wp_rewrite; 11 11 … … 19 19 update_option('admin_email', $user_email); 20 20 update_option('blog_public', $public); 21 update_option('enable_app',$remote); 22 update_option('enable_xmlrpc',$remote); 23 24 $schema = ( isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on' ) ? 'https://' : 'http://'; 25 26 if ( defined('WP_SITEURL') && '' != WP_SITEURL ) 27 $guessurl = WP_SITEURL; 28 else 29 $guessurl = preg_replace('|/wp-admin/.*|i', '', $schema . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']); 21 22 $guessurl = wp_guess_url(); 30 23 31 24 update_option('siteurl', $guessurl); … … 212 205 upgrade_252(); 213 206 214 if ( $wp_current_db_version < 8 000)207 if ( $wp_current_db_version < 8201 ) 215 208 upgrade_260(); 216 209 … … 750 743 751 744 function upgrade_260() { 752 populate_roles_260(); 745 if ( $wp_current_db_version < 8000 ) 746 populate_roles_260(); 747 748 if ( $wp_current_db_version < 8201 ) { 749 update_option('enable_app', 1); 750 update_option('enable_xmlrpc', 1); 751 } 753 752 } 754 753 … … 882 881 global $wpdb; 883 882 884 // Sep erate individual queries into an array883 // Separate individual queries into an array 885 884 if( !is_array($queries) ) { 886 885 $queries = explode( ';', $queries );
Note: See TracChangeset
for help on using the changeset viewer.