Make WordPress Core


Ignore:
Timestamp:
07/02/2008 11:07:56 PM (17 years ago)
Author:
mdawaffe
Message:

crazyhorse: merge with log:trunk@8151:8240

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/crazyhorse/wp-admin/includes/upgrade.php

    r8151 r8242  
    77
    88if ( !function_exists('wp_install') ) :
    9 function wp_install($blog_title, $user_name, $user_email, $public, $remote) {
     9function wp_install($blog_title, $user_name, $user_email, $public, $deprecated='') {
    1010    global $wp_rewrite;
    1111
     
    1919    update_option('admin_email', $user_email);
    2020    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();
    3023
    3124    update_option('siteurl', $guessurl);
     
    212205        upgrade_252();
    213206
    214     if ( $wp_current_db_version < 8000 )
     207    if ( $wp_current_db_version < 8201 )
    215208        upgrade_260();
    216209
     
    750743
    751744function 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    }
    753752}
    754753
     
    882881    global $wpdb;
    883882
    884     // Seperate individual queries into an array
     883    // Separate individual queries into an array
    885884    if( !is_array($queries) ) {
    886885        $queries = explode( ';', $queries );
Note: See TracChangeset for help on using the changeset viewer.