Ticket #3859: rss_applyfilters.diff
File rss_applyfilters.diff, 1.6 KB (added by , 18 years ago) |
---|
-
wp-includes/feed.php
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 } 183 183 } … … 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 } 198 198 } 199 199 } 200 200 201 ?> 202 No newline at end of file 201 ?>