Ticket #4994: 4994.2.r6668.diff
File 4994.2.r6668.diff, 1.2 KB (added by , 17 years ago) |
---|
-
wp-includes/functions.php
1676 1676 trigger_error( printf( __("%s is <strong>deprecated</strong> since version %s with no alternative available."), $file, $version ) ); 1677 1677 } 1678 1678 } 1679 ?> 1679 1680 /** 1681 * wp_set_default_timezone() - Sets the default timezone to GMT. 1682 * 1683 * @since 2.5 1684 * 1685 * @return void Returns nothing 1686 */ 1687 function wp_set_default_timezone() { 1688 if( function_exists('date_default_timezone_set') ) { 1689 date_default_timezone_set('Etc/GMT'); 1690 } 1691 } 1692 1693 ?> 1694 No newline at end of file -
wp-settings.php
204 204 if ( is_wp_error($prefix) ) 205 205 wp_die('<strong>ERROR</strong>: <code>$table_prefix</code> in <code>wp-config.php</code> can only contain numbers, letters, and underscores.'); 206 206 207 wp_set_default_timezone(); 208 207 209 if ( file_exists(ABSPATH . 'wp-content/object-cache.php') ) 208 210 require_once (ABSPATH . 'wp-content/object-cache.php'); 209 211 else