Changeset 4835
- Timestamp:
- 01/30/2007 06:11:04 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0/wp-includes/rss-functions.php
r3083 r4835 817 817 } 818 818 } 819 function wp_rss ($url, $num ) {819 function wp_rss ($url, $num_items) { 820 820 //ini_set("display_errors", false); uncomment to suppress php errors thrown if the feed is not returned. 821 $num_items = $num;822 821 $rss = fetch_rss($url); 823 822 if ( $rss ) { … … 838 837 } 839 838 840 function get_rss ($ur i, $num= 5) { // Like get posts, but for RSS839 function get_rss ($url, $num_items = 5) { // Like get posts, but for RSS 841 840 $rss = fetch_rss($url); 842 841 if ( $rss ) { … … 849 848 echo "</li>\n"; 850 849 } 851 return $posts;852 850 } else { 853 851 return false;
Note: See TracChangeset
for help on using the changeset viewer.