Skip to content

Commit

Permalink
Remove old code unsetting a few variables in wp-settings.php. fixes #…
Browse files Browse the repository at this point in the history
…21115.

git-svn-id: http://core.svn.wordpress.org/trunk@21186 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
nacin committed Jun 29, 2012
1 parent aebd57c commit 9dca2c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions wp-includes/comment.php
Expand Up @@ -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];
Expand Down
3 changes: 0 additions & 3 deletions wp-settings.php
Expand Up @@ -39,9 +39,6 @@
// 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();

Expand Down

0 comments on commit 9dca2c6

Please sign in to comment.