Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Zend hash del key or index fix. PRops MarkJaquith.

git-svn-id: http://svn.automattic.com/wordpress/branches/2.0@4717 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
commit f43a8d7566cf12345ec5cf49653fb66291e42146 1 parent a98c116
ryan authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 wp-settings.php
View
4 wp-settings.php
@@ -12,8 +12,10 @@ function 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]);
+ }
}
unregister_GLOBALS();
Please sign in to comment.
Something went wrong with that request. Please try again.