From 61c0ce404862ad44a22dea5a9c1196494385a7a5 Mon Sep 17 00:00:00 2001 From: michelvaldrighi Date: Sun, 8 Feb 2004 16:10:28 +0000 Subject: [PATCH] we should never use $RESUEST_URI, but access it with $_SERVER git-svn-id: https://develop.svn.wordpress.org/trunk@845 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/functions.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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;