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

git-svn-id: http://core.svn.wordpress.org/trunk@21186 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2012-06-29 20:57:09 +00:00
parent aebd57c588
commit 9dca2c6876
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();