Changeset 10150 for trunk/wp-includes/feed.php
- Timestamp:
- 12/09/2008 06:03:31 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/feed.php
r9769 r10150 402 402 foreach ( (array) $val as $enc ) { 403 403 $enclosure = split("\n", $enc); 404 404 405 405 //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 409 409 echo apply_filters('rss_enclosure', '<enclosure url="' . trim(htmlspecialchars($enclosure[0])) . '" length="' . trim($enclosure[1]) . '" type="' . $type . '" />' . "\n"); 410 410 } … … 501 501 $host = @parse_url(get_option('home')); 502 502 $host = $host['host']; 503 echo clean_url( 503 echo clean_url( 504 504 'http' 505 505 . ( (isset($_SERVER['https']) && $_SERVER['https'] == 'on') ? 's' : '' ) . '://'
Note: See TracChangeset
for help on using the changeset viewer.