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/schema.php

    r8151 r8242  
    154154function populate_options() {
    155155    global $wpdb, $wp_db_version;
    156 
    157     $schema = ( isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on' ) ? 'https://' : 'http://';
    158     $guessurl = preg_replace('|/wp-admin/.*|i', '', $schema . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
     156   
     157    $guessurl = wp_guess_url();
    159158   
    160159    do_action('populate_options');
     
    256255    // 2.6
    257256    add_option('avatar_default', 'mystery');
    258     add_option('enable_app',0);
    259     add_option('enable_xmlrpc',0);
     257    add_option('enable_app', 0);
     258    add_option('enable_xmlrpc', 0);
    260259   
    261260    // Delete unused options
Note: See TracChangeset for help on using the changeset viewer.