Make WordPress Core

Ticket #3834: wp_rss_description_removal.diff

File wp_rss_description_removal.diff, 1.0 KB (added by markjaquith, 18 years ago)

Removes description from the title

  • wp-includes/rss.php

     
    816816                return -1;
    817817        }
    818818        }
     819
    819820function wp_rss ($url, $num_items) {
    820821        //ini_set("display_errors", false); uncomment to suppress php errors thrown if the feed is not returned.
    821822        $rss = fetch_rss($url);
     
    824825                        $rss->items = array_slice($rss->items, 0, $num_items);
    825826                                foreach ($rss->items as $item ) {
    826827                                        echo "<li>\n";
    827                                         echo "<a href='$item[link]' title='$item[description]'>";
     828                                        echo "<a href='$item[link]'>";
    828829                                        echo htmlentities($item['title']);
    829830                                        echo "</a><br />\n";
    830831                                        echo "</li>\n";
     
    842843                $rss->items = array_slice($rss->items, 0, $num_items);
    843844                foreach ($rss->items as $item ) {
    844845                        echo "<li>\n";
    845                         echo "<a href='$item[link]' title='$item[description]'>";
     846                        echo "<a href='$item[link]'>";
    846847                        echo htmlentities($item['title']);
    847848                        echo "</a><br />\n";
    848849                        echo "</li>\n";