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:
parent
aebd57c588
commit
9dca2c6876
|
@ -399,14 +399,14 @@ function get_comment_statuses( ) {
|
||||||
*
|
*
|
||||||
* @since 1.5.0
|
* @since 1.5.0
|
||||||
* @uses $wpdb
|
* @uses $wpdb
|
||||||
* @global array $cache_lastcommentmodified
|
|
||||||
*
|
*
|
||||||
* @param string $timezone Which timezone to use in reference to 'gmt', 'blog',
|
* @param string $timezone Which timezone to use in reference to 'gmt', 'blog',
|
||||||
* or 'server' locations.
|
* or 'server' locations.
|
||||||
* @return string Last comment modified date.
|
* @return string Last comment modified date.
|
||||||
*/
|
*/
|
||||||
function get_lastcommentmodified($timezone = 'server') {
|
function get_lastcommentmodified($timezone = 'server') {
|
||||||
global $cache_lastcommentmodified, $wpdb;
|
global $wpdb;
|
||||||
|
static $cache_lastcommentmodified = array();
|
||||||
|
|
||||||
if ( isset($cache_lastcommentmodified[$timezone]) )
|
if ( isset($cache_lastcommentmodified[$timezone]) )
|
||||||
return $cache_lastcommentmodified[$timezone];
|
return $cache_lastcommentmodified[$timezone];
|
||||||
|
|
|
@ -39,9 +39,6 @@ if ( function_exists( 'date_default_timezone_set' ) )
|
||||||
// Turn register_globals off.
|
// Turn register_globals off.
|
||||||
wp_unregister_GLOBALS();
|
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.
|
// Standardize $_SERVER variables across setups.
|
||||||
wp_fix_server_vars();
|
wp_fix_server_vars();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue