Make WordPress Core

Changeset 1450


Ignore:
Timestamp:
06/30/2004 09:54:10 PM (21 years ago)
Author:
saxmatt
Message:

Fine tune checking.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r1449 r1450  
    288288function get_settings($setting) {
    289289    global $wpdb, $cache_settings;
    290     if ( strstr($_SERVER['REQUEST_URI'], 'install.php') || strstr($_SERVER['REQUEST_URI'], 'upgrade.php') )
     290    if ( strstr($_SERVER['REQUEST_URI'], 'wp-admin/install.php') || strstr($_SERVER['REQUEST_URI'], 'wp-admin/upgrade.php') )
    291291        return false;
    292292
     
    294294        $cache_settings = get_alloptions();
    295295
    296     if ('home' == $setting && '' == $cache_settings->home) return $cache_settings->siteurl;
     296    if ('home' == $setting && '' == $cache_settings->home)
     297        return $cache_settings->siteurl;
    297298
    298299    if ( isset($cache_settings->$setting) )
Note: See TracChangeset for help on using the changeset viewer.