diff options
Diffstat (limited to 'wp-settings.php')
| -rw-r--r-- | wp-settings.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/wp-settings.php b/wp-settings.php index 482a5fa..f39ec9a 100644 --- a/wp-settings.php +++ b/wp-settings.php @@ -15,8 +15,10 @@ function wp_unregister_GLOBALS() { $input = array_merge($_GET, $_POST, $_COOKIE, $_SERVER, $_ENV, $_FILES, isset($_SESSION) && is_array($_SESSION) ? $_SESSION : array()); foreach ( $input as $k => $v ) - if ( !in_array($k, $noUnset) && isset($GLOBALS[$k]) ) + if ( !in_array($k, $noUnset) && isset($GLOBALS[$k]) ) { + $GLOBALS[$k] = NULL; unset($GLOBALS[$k]); + } } wp_unregister_GLOBALS(); |
