We no longer need to check function_exists() for date_default_timezone_set(). props Gary-J, j-idris. fixes #20501.
git-svn-id: https://develop.svn.wordpress.org/trunk@21544 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c43e008f54
commit
bb3df46536
@ -32,9 +32,8 @@ wp_check_php_mysql_versions();
|
||||
@ini_set( 'magic_quotes_runtime', 0 );
|
||||
@ini_set( 'magic_quotes_sybase', 0 );
|
||||
|
||||
// Set default timezone in PHP 5.
|
||||
if ( function_exists( 'date_default_timezone_set' ) )
|
||||
date_default_timezone_set( 'UTC' );
|
||||
// WordPress calculates offsets from UTC.
|
||||
date_default_timezone_set( 'UTC' );
|
||||
|
||||
// Turn register_globals off.
|
||||
wp_unregister_GLOBALS();
|
||||
|
Loading…
Reference in New Issue
Block a user