Ticket #3834: wp_rss_description_removal.diff
File wp_rss_description_removal.diff, 1.0 KB (added by , 18 years ago) |
---|
-
wp-includes/rss.php
816 816 return -1; 817 817 } 818 818 } 819 819 820 function wp_rss ($url, $num_items) { 820 821 //ini_set("display_errors", false); uncomment to suppress php errors thrown if the feed is not returned. 821 822 $rss = fetch_rss($url); … … 824 825 $rss->items = array_slice($rss->items, 0, $num_items); 825 826 foreach ($rss->items as $item ) { 826 827 echo "<li>\n"; 827 echo "<a href='$item[link]' title='$item[description]'>";828 echo "<a href='$item[link]'>"; 828 829 echo htmlentities($item['title']); 829 830 echo "</a><br />\n"; 830 831 echo "</li>\n"; … … 842 843 $rss->items = array_slice($rss->items, 0, $num_items); 843 844 foreach ($rss->items as $item ) { 844 845 echo "<li>\n"; 845 echo "<a href='$item[link]' title='$item[description]'>";846 echo "<a href='$item[link]'>"; 846 847 echo htmlentities($item['title']); 847 848 echo "</a><br />\n"; 848 849 echo "</li>\n";