WordPress.org

Make WordPress Core

Changeset 13598


Ignore:
Timestamp:
03/06/2010 05:53:20 AM (11 years ago)
Author:
dd32
Message:

Coding Standards: no camelcase variables, use lowercase for variables. Props hakre. Fixes #12519

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/load.php

    r13499 r13598  
    2121
    2222    // Variables that shouldn't be unset
    23     $noUnset = array( 'GLOBALS', '_GET', '_POST', '_COOKIE', '_REQUEST', '_SERVER', '_ENV', '_FILES', 'table_prefix' );
     23    $no_unset = array( 'GLOBALS', '_GET', '_POST', '_COOKIE', '_REQUEST', '_SERVER', '_ENV', '_FILES', 'table_prefix' );
    2424
    2525    $input = array_merge( $_GET, $_POST, $_COOKIE, $_SERVER, $_ENV, $_FILES, isset( $_SESSION ) && is_array( $_SESSION ) ? $_SESSION : array() );
    2626    foreach ( $input as $k => $v )
    27         if ( !in_array( $k, $noUnset ) && isset( $GLOBALS[$k] ) ) {
    28             $GLOBALS[$k] = NULL;
     27        if ( !in_array( $k, $no_unset ) && isset( $GLOBALS[$k] ) ) {
     28            $GLOBALS[$k] = null;
    2929            unset( $GLOBALS[$k] );
    3030        }
Note: See TracChangeset for help on using the changeset viewer.