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
This commit is contained in:
parent
94054cd0ee
commit
61c0ce4048
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user