From 26432632e54b103e06d90c98e0588fde277a05ec Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 11 Jan 2007 03:06:28 +0000 Subject: [PATCH] Zend hash del key or index fix. PRops MarkJaquith. git-svn-id: https://develop.svn.wordpress.org/trunk@4717 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-settings.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-settings.php b/wp-settings.php index 4048ae6734..f96343807d 100644 --- a/wp-settings.php +++ b/wp-settings.php @@ -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();