Make WordPress Core


Ignore:
Timestamp:
03/18/2009 02:43:45 AM (17 years ago)
Author:
ryan
Message:

Trim trailing whitespace

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r10795 r10810  
    652652 * If the transient does not exist or does not have a value, then the return value
    653653 * will be false.
    654  * 
     654 *
    655655 * @since 2.8.0
    656656 * @package WordPress
     
    711711            $autoload = 'yes';
    712712            if ( 0 != $expiration ) {
    713                 $autoload = 'no'; 
     713                $autoload = 'no';
    714714                add_option($transient_timeout, time() + $expiration, '', 'no');
    715715            }
     
    14901490        'Pragma' => 'no-cache',
    14911491    );
    1492    
     1492
    14931493    if ( function_exists('apply_filters') ) {
    14941494        $headers = apply_filters('nocache_headers', $headers);
     
    15081508function nocache_headers() {
    15091509    $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}");
    15121512}
    15131513
     
    30523052/**
    30533053 * gmt_offset modification for smart timezone handling
    3054  * 
     3054 *
    30553055 * Overrides the gmt_offset option if we have a timezone_string available
    30563056 */
     
    30623062
    30633063    @date_default_timezone_set($tz);
    3064        
     3064
    30653065    $dateTimeZoneSelected = timezone_open($tz);
    30663066    $dateTimeServer = date_create();
    30673067    if ($dateTimeZoneSelected === false || $dateTimeServer === false) return false;
    3068        
     3068
    30693069    $timeOffset = timezone_offset_get($dateTimeZoneSelected, $dateTimeServer);
    30703070    $timeOffset = $timeOffset / 3600;
    3071        
     3071
    30723072    return $timeOffset;
    30733073}
     
    30753075/**
    30763076 * Check for PHP timezone support
    3077  * 
     3077 *
    30783078 */
    30793079function wp_timezone_supported() {
    3080     if (function_exists('date_default_timezone_set') 
     3080    if (function_exists('date_default_timezone_set')
    30813081        && function_exists('timezone_identifiers_list')
    3082         && function_exists('timezone_open') 
     3082        && function_exists('timezone_open')
    30833083        && function_exists('timezone_offset_get')
    3084         ) 
     3084        )
    30853085        return true;
    30863086
     
    31093109        $i++;
    31103110    }
    3111    
     3111
    31123112    asort($zonen);
    31133113    $structure = '';
Note: See TracChangeset for help on using the changeset viewer.