Changeset 8572 for trunk/wp-includes/feed.php
- Timestamp:
- 08/06/2008 08:31:54 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/feed.php
r8246 r8572 399 399 return; 400 400 401 foreach ( get_post_custom() as $key => $val) {401 foreach ( (array) get_post_custom() as $key => $val) { 402 402 if ($key == 'enclosure') { 403 foreach ( (array)$val as $enc) {403 foreach ( (array) $val as $enc ) { 404 404 $enclosure = split("\n", $enc); 405 405 echo apply_filters('rss_enclosure', '<enclosure url="' . trim(htmlspecialchars($enclosure[0])) . '" length="' . trim($enclosure[1]) . '" type="' . trim($enclosure[2]) . '" />' . "\n"); … … 431 431 return; 432 432 433 foreach ( get_post_custom() as $key => $val) {433 foreach ( (array) get_post_custom() as $key => $val ) { 434 434 if ($key == 'enclosure') { 435 foreach ( (array)$val as $enc) {435 foreach ( (array) $val as $enc ) { 436 436 $enclosure = split("\n", $enc); 437 437 echo apply_filters('atom_enclosure', '<link href="' . trim(htmlspecialchars($enclosure[0])) . '" rel="enclosure" length="' . trim($enclosure[1]) . '" type="' . trim($enclosure[2]) . '" />' . "\n");
Note: See TracChangeset
for help on using the changeset viewer.