Zend hash del key or index fix. PRops MarkJaquith.
git-svn-id: https://develop.svn.wordpress.org/trunk@4717 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
827a32de28
commit
26432632e5
@ -12,9 +12,11 @@ function wp_unregister_GLOBALS() {
|
|||||||
|
|
||||||
$input = array_merge($_GET, $_POST, $_COOKIE, $_SERVER, $_ENV, $_FILES, isset($_SESSION) && is_array($_SESSION) ? $_SESSION : array());
|
$input = array_merge($_GET, $_POST, $_COOKIE, $_SERVER, $_ENV, $_FILES, isset($_SESSION) && is_array($_SESSION) ? $_SESSION : array());
|
||||||
foreach ( $input as $k => $v )
|
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]);
|
unset($GLOBALS[$k]);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
wp_unregister_GLOBALS();
|
wp_unregister_GLOBALS();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user