From 89c01536de96083ab3c987d67947e9158a1dd0ae Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Sat, 6 Mar 2010 05:53:20 +0000 Subject: [PATCH] Coding Standards: no camelcase variables, use lowercase for variables. Props hakre. Fixes #12519 git-svn-id: https://develop.svn.wordpress.org/trunk@13598 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/load.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/load.php b/wp-includes/load.php index 46643994ea..98e51d12d2 100644 --- a/wp-includes/load.php +++ b/wp-includes/load.php @@ -20,12 +20,12 @@ function wp_unregister_GLOBALS() { die( /*WP_I18N_GLOBALS_OVERWRITE*/'GLOBALS overwrite attempt detected'/*/WP_I18N_GLOBALS_OVERWRITE*/ ); // Variables that shouldn't be unset - $noUnset = array( 'GLOBALS', '_GET', '_POST', '_COOKIE', '_REQUEST', '_SERVER', '_ENV', '_FILES', 'table_prefix' ); + $no_unset = array( 'GLOBALS', '_GET', '_POST', '_COOKIE', '_REQUEST', '_SERVER', '_ENV', '_FILES', 'table_prefix' ); $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] ) ) { - $GLOBALS[$k] = NULL; + if ( !in_array( $k, $no_unset ) && isset( $GLOBALS[$k] ) ) { + $GLOBALS[$k] = null; unset( $GLOBALS[$k] ); } }