WordPress.org

Make WordPress Core

Changeset 4717


Ignore:
Timestamp:
01/11/07 03:06:28 (7 years ago)
Author:
ryan
Message:

Zend hash del key or index fix. PRops MarkJaquith.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/wp-settings.php

    r4709 r4717  
    1313    $input = array_merge($_GET, $_POST, $_COOKIE, $_SERVER, $_ENV, $_FILES, isset($_SESSION) && is_array($_SESSION) ? $_SESSION : array()); 
    1414    foreach ( $input as $k => $v )  
    15         if ( !in_array($k, $noUnset) && isset($GLOBALS[$k]) ) 
     15        if ( !in_array($k, $noUnset) && isset($GLOBALS[$k]) ) { 
     16            $GLOBALS[$k] = NULL; 
    1617            unset($GLOBALS[$k]); 
     18        } 
    1719} 
    1820 
  • trunk/wp-settings.php

    r4699 r4717  
    1313    $input = array_merge($_GET, $_POST, $_COOKIE, $_SERVER, $_ENV, $_FILES, isset($_SESSION) && is_array($_SESSION) ? $_SESSION : array()); 
    1414    foreach ( $input as $k => $v )  
    15         if ( !in_array($k, $noUnset) && isset($GLOBALS[$k]) ) 
     15        if ( !in_array($k, $noUnset) && isset($GLOBALS[$k]) ) { 
     16            $GLOBALS[$k] = NULL; 
    1617            unset($GLOBALS[$k]); 
     18        } 
    1719} 
    1820 
Note: See TracChangeset for help on using the changeset viewer.