Make WordPress Core


Ignore:
Timestamp:
11/19/2006 07:56:05 AM (20 years ago)
Author:
ryan
Message:

Remove trailing spaces and convert spaces to tabs. Props Nazgul. fixes #986

File:
1 edited

Legend:

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

    r4483 r4495  
    1313        if( 'U' == $dateformatstring )
    1414                return $i;
    15        
     15
    1616        if ( -1 == $i || false == $i )
    1717                $i = 0;
    … …  
    463463
    464464        if ( $red > 5 )
    465           return false;
     465                return false;
    466466
    467467        $parts = parse_url( $url );
    … …  
    492492        $headers['response'] = $return[1]; // HTTP response code eg 204, 200, 404
    493493
    494     $code = $headers['response'];
    495     if ( ('302' == $code || '301' == $code) && isset($headers['location']) )
    496         return wp_get_http_headers( $headers['location'], ++$red );
     494                $code = $headers['response'];
     495                if ( ('302' == $code || '301' == $code) && isset($headers['location']) )
     496                                return wp_get_http_headers( $headers['location'], ++$red );
    497497
    498498        return $headers;
    … …  
    802802
    803803function bool_from_yn($yn) {
    804     if ($yn == 'Y') return 1;
    805     return 0;
     804                if ($yn == 'Y') return 1;
     805                return 0;
    806806}
    807807
    … …  
    958958        }
    959959
    960     $uploads = array('path' => $dir, 'url' => $url, 'error' => false);
     960                $uploads = array('path' => $dir, 'url' => $url, 'error' => false);
    961961        return apply_filters('upload_dir', $uploads);
    962962}
Note: See TracChangeset for help on using the changeset viewer.