We no longer need to check function_exists() for date_default_timezone_set(). props Gary-J, j-idris. fixes #20501.
git-svn-id: http://core.svn.wordpress.org/trunk@21544 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
26ebec2fc8
commit
9d12d7df9c
|
@ -32,9 +32,8 @@ wp_check_php_mysql_versions();
|
||||||
@ini_set( 'magic_quotes_runtime', 0 );
|
@ini_set( 'magic_quotes_runtime', 0 );
|
||||||
@ini_set( 'magic_quotes_sybase', 0 );
|
@ini_set( 'magic_quotes_sybase', 0 );
|
||||||
|
|
||||||
// Set default timezone in PHP 5.
|
// WordPress calculates offsets from UTC.
|
||||||
if ( function_exists( 'date_default_timezone_set' ) )
|
date_default_timezone_set( 'UTC' );
|
||||||
date_default_timezone_set( 'UTC' );
|
|
||||||
|
|
||||||
// Turn register_globals off.
|
// Turn register_globals off.
|
||||||
wp_unregister_GLOBALS();
|
wp_unregister_GLOBALS();
|
||||||
|
|
Loading…
Reference in New Issue