Make WordPress Core

Changeset 21186


Ignore:
Timestamp:
06/29/2012 08:57:09 PM (13 years ago)
Author:
nacin
Message:

Remove old code unsetting a few variables in wp-settings.php. fixes #21115.

Location:
trunk
Files:
2 edited

Legend:

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

    r20569 r21186  
    400400 * @since 1.5.0
    401401 * @uses $wpdb
    402  * @global array $cache_lastcommentmodified
    403402 *
    404403 * @param string $timezone Which timezone to use in reference to 'gmt', 'blog',
     
    407406 */
    408407function get_lastcommentmodified($timezone = 'server') {
    409     global $cache_lastcommentmodified, $wpdb;
     408    global $wpdb;
     409    static $cache_lastcommentmodified = array();
    410410
    411411    if ( isset($cache_lastcommentmodified[$timezone]) )
  • trunk/wp-settings.php

    r20610 r21186  
    3939// Turn register_globals off.
    4040wp_unregister_GLOBALS();
    41 
    42 // Ensure these global variables do not exist so they do not interfere with WordPress.
    43 unset( $wp_filter, $cache_lastcommentmodified );
    4441
    4542// Standardize $_SERVER variables across setups.
Note: See TracChangeset for help on using the changeset viewer.