Make WordPress Core

Ticket #3859: rss_applyfilters.diff

File rss_applyfilters.diff, 1.6 KB (added by Znuff, 18 years ago)
  • wp-includes/feed.php

     
    177177               if ($key == 'enclosure') {
    178178                       foreach ((array)$val as $enc) {
    179179                               $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");
    181181                       }
    182182               }
    183183       }
     
    192192               if ($key == 'enclosure') {
    193193                       foreach ((array)$val as $enc) {
    194194                               $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");
    196196                       }
    197197               }
    198198       }
    199199}
    200200
    201 ?>
    202  No newline at end of file
     201?>