Changeset 10810 for trunk/wp-includes/functions.php
- Timestamp:
- 03/18/2009 02:43:45 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/functions.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r10795 r10810 652 652 * If the transient does not exist or does not have a value, then the return value 653 653 * will be false. 654 * 654 * 655 655 * @since 2.8.0 656 656 * @package WordPress … … 711 711 $autoload = 'yes'; 712 712 if ( 0 != $expiration ) { 713 $autoload = 'no'; 713 $autoload = 'no'; 714 714 add_option($transient_timeout, time() + $expiration, '', 'no'); 715 715 } … … 1490 1490 'Pragma' => 'no-cache', 1491 1491 ); 1492 1492 1493 1493 if ( function_exists('apply_filters') ) { 1494 1494 $headers = apply_filters('nocache_headers', $headers); … … 1508 1508 function nocache_headers() { 1509 1509 $headers = wp_get_nocache_headers(); 1510 foreach( (array) $headers as $name => $field_value ) 1511 @header("{$name}: {$field_value}"); 1510 foreach( (array) $headers as $name => $field_value ) 1511 @header("{$name}: {$field_value}"); 1512 1512 } 1513 1513 … … 3052 3052 /** 3053 3053 * gmt_offset modification for smart timezone handling 3054 * 3054 * 3055 3055 * Overrides the gmt_offset option if we have a timezone_string available 3056 3056 */ … … 3062 3062 3063 3063 @date_default_timezone_set($tz); 3064 3064 3065 3065 $dateTimeZoneSelected = timezone_open($tz); 3066 3066 $dateTimeServer = date_create(); 3067 3067 if ($dateTimeZoneSelected === false || $dateTimeServer === false) return false; 3068 3068 3069 3069 $timeOffset = timezone_offset_get($dateTimeZoneSelected, $dateTimeServer); 3070 3070 $timeOffset = $timeOffset / 3600; 3071 3071 3072 3072 return $timeOffset; 3073 3073 } … … 3075 3075 /** 3076 3076 * Check for PHP timezone support 3077 * 3077 * 3078 3078 */ 3079 3079 function wp_timezone_supported() { 3080 if (function_exists('date_default_timezone_set') 3080 if (function_exists('date_default_timezone_set') 3081 3081 && function_exists('timezone_identifiers_list') 3082 && function_exists('timezone_open') 3082 && function_exists('timezone_open') 3083 3083 && function_exists('timezone_offset_get') 3084 ) 3084 ) 3085 3085 return true; 3086 3086 … … 3109 3109 $i++; 3110 3110 } 3111 3111 3112 3112 asort($zonen); 3113 3113 $structure = '';
Note: See TracChangeset
for help on using the changeset viewer.