Make WordPress Core


Ignore:
Timestamp:
12/09/2008 06:03:31 PM (16 years ago)
Author:
ryan
Message:

Strip trailing whitespace

File:
1 edited

Legend:

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

    r9769 r10150  
    402402            foreach ( (array) $val as $enc ) {
    403403                $enclosure = split("\n", $enc);
    404                
     404
    405405                //only get the the first element eg, audio/mpeg from 'audio/mpeg mpga mp2 mp3'
    406                 $t = split('[ \t]', trim($enclosure[2]) ); 
    407                 $type = $t[0]; 
    408                
     406                $t = split('[ \t]', trim($enclosure[2]) );
     407                $type = $t[0];
     408
    409409                echo apply_filters('rss_enclosure', '<enclosure url="' . trim(htmlspecialchars($enclosure[0])) . '" length="' . trim($enclosure[1]) . '" type="' . $type . '" />' . "\n");
    410410            }
     
    501501    $host = @parse_url(get_option('home'));
    502502    $host = $host['host'];
    503     echo clean_url( 
     503    echo clean_url(
    504504        'http'
    505505        . ( (isset($_SERVER['https']) && $_SERVER['https'] == 'on') ? 's' : '' ) . '://'
Note: See TracChangeset for help on using the changeset viewer.