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

git-svn-id: https://develop.svn.wordpress.org/trunk@21186 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2012-06-29 20:57:09 +00:00
parent 9fd4c1cb9b
commit e1b03b4fd4
2 changed files with 2 additions and 5 deletions

View File

@ -399,14 +399,14 @@ function get_comment_statuses( ) {
*
* @since 1.5.0
* @uses $wpdb
* @global array $cache_lastcommentmodified
*
* @param string $timezone Which timezone to use in reference to 'gmt', 'blog',
* or 'server' locations.
* @return string Last comment modified date.
*/
function get_lastcommentmodified($timezone = 'server') {
global $cache_lastcommentmodified, $wpdb;
global $wpdb;
static $cache_lastcommentmodified = array();
if ( isset($cache_lastcommentmodified[$timezone]) )
return $cache_lastcommentmodified[$timezone];

View File

@ -39,9 +39,6 @@ if ( function_exists( 'date_default_timezone_set' ) )
// Turn register_globals off.
wp_unregister_GLOBALS();
// Ensure these global variables do not exist so they do not interfere with WordPress.
unset( $wp_filter, $cache_lastcommentmodified );
// Standardize $_SERVER variables across setups.
wp_fix_server_vars();