diff --git a/wp-includes/functions.php b/wp-includes/functions.php index ee5ba2b1e2..830becbe09 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -549,8 +549,10 @@ function url_to_postid($url = '') { /* Options functions */ function get_settings($setting) { - global $wpdb, $cache_settings, $use_cache, $REQUEST_URI; - if (strstr($REQUEST_URI, 'install.php')) return false; + global $wpdb, $cache_settings, $use_cache; + if (strstr($_SERVER['REQUEST_URI'], 'install.php')) { + return false; + } if ((empty($cache_settings)) OR (!$use_cache)) { $settings = get_alloptions(); $cache_settings = $settings;