Changeset 4933
- Timestamp:
- 02/24/2007 06:30:51 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/feed.php
r4930 r4933 174 174 return; 175 175 176 foreach (get_post_custom() as $k => $v) {176 foreach (get_post_custom() as $key => $val) { 177 177 if ($key == 'enclosure') { 178 178 foreach ((array)$val as $enc) { 179 179 $enclosure = split("\n", $enc); 180 echo apply_filters('rss_enclosure', '<enclosure url="' . trim(htmlspecialchars($enclosure[0])) . '" length="' . trim($enclosure[1]) . '" type="' . trim($enclosure[2]) . '" />' . "\n" ;180 echo apply_filters('rss_enclosure', '<enclosure url="' . trim(htmlspecialchars($enclosure[0])) . '" length="' . trim($enclosure[1]) . '" type="' . trim($enclosure[2]) . '" />' . "\n"); 181 181 } 182 182 } … … 189 189 return; 190 190 191 foreach (get_post_custom() as $k => $v) {191 foreach (get_post_custom() as $key => $val) { 192 192 if ($key == 'enclosure') { 193 193 foreach ((array)$val as $enc) { 194 194 $enclosure = split("\n", $enc); 195 echo apply_filters('atom_enclosure', '<link href="' . trim(htmlspecialchars($enclosure[0])) . '" rel="enclosure" length="' . trim($enclosure[1]) . '" type="' . trim($enclosure[2]) . '" />' . "\n" ;195 echo apply_filters('atom_enclosure', '<link href="' . trim(htmlspecialchars($enclosure[0])) . '" rel="enclosure" length="' . trim($enclosure[1]) . '" type="' . trim($enclosure[2]) . '" />' . "\n"); 196 196 } 197 197 }
Note: See TracChangeset
for help on using the changeset viewer.