Make WordPress Core


Ignore:
Timestamp:
06/24/2008 05:36:21 PM (18 years ago)
Author:
ryan
Message:

wp_guess_url() and install styling fixes from sambauers. fixes #7129 see #4732

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/schema.php

    r8136 r8182  
    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');
Note: See TracChangeset for help on using the changeset viewer.