Ticket #16970: 16970.patch
File 16970.patch, 1.6 KB (added by , 14 years ago) |
---|
-
wp-includes/functions.php
### Eclipse Workspace Patch 1.0 #P wordpress-trunk
4008 4008 } 4009 4009 4010 4010 /** 4011 * Check for PHP timezone support4012 *4013 * @since 2.9.04014 *4015 * @return bool4016 */4017 function wp_timezone_supported() {4018 $support = false;4019 if (4020 function_exists( 'date_create' ) &&4021 function_exists( 'date_default_timezone_set' ) &&4022 function_exists( 'timezone_identifiers_list' ) &&4023 function_exists( 'timezone_open' ) &&4024 function_exists( 'timezone_offset_get' )4025 ) {4026 $support = true;4027 }4028 return apply_filters( 'timezone_support', $support );4029 }4030 4031 /**4032 4011 * {@internal Missing Short Description}} 4033 4012 * 4034 4013 * @since 2.9.0 -
wp-includes/deprecated.php
2602 2602 return true; 2603 2603 } 2604 2604 2605 /** 2606 * Check for PHP timezone support 2607 * 2608 * @since 2.9.0 2609 * @deprecated 3.2 2610 * 2611 * @return bool 2612 */ 2613 function wp_timezone_supported() { 2614 _deprecated_function( __FUNCTION__, '3.2' ); 2615 $support = false; 2616 if ( 2617 function_exists( 'date_create' ) && 2618 function_exists( 'date_default_timezone_set' ) && 2619 function_exists( 'timezone_identifiers_list' ) && 2620 function_exists( 'timezone_open' ) && 2621 function_exists( 'timezone_offset_get' ) 2622 ) { 2623 $support = true; 2624 } 2625 return apply_filters( 'timezone_support', $support ); 2626 } 2627