Zend hash del key or index fix. PRops MarkJaquith.

git-svn-id: http://svn.automattic.com/wordpress/trunk@4717 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-01-11 03:06:28 +00:00
parent cc281016ff
commit 9323d39466
1 changed files with 3 additions and 1 deletions

View File

@ -12,8 +12,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();