Changeset 4835

Show
Ignore:
Timestamp:
01/30/07 18:11:04 (2 years ago)
Author:
markjaquith
Message:

Fix typos in get_rss(). Props zuzara. fixes #3527

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/2.0/wp-includes/rss-functions.php

    r3083 r4835  
    817817    } 
    818818    } 
    819 function wp_rss ($url, $num) { 
     819function wp_rss ($url, $num_items) { 
    820820    //ini_set("display_errors", false); uncomment to suppress php errors thrown if the feed is not returned. 
    821     $num_items = $num; 
    822821    $rss = fetch_rss($url); 
    823822        if ( $rss ) { 
     
    838837} 
    839838 
    840 function get_rss ($uri, $num = 5) { // Like get posts, but for RSS 
     839function get_rss ($url, $num_items = 5) { // Like get posts, but for RSS 
    841840    $rss = fetch_rss($url); 
    842841    if ( $rss ) { 
     
    849848            echo "</li>\n"; 
    850849        } 
    851         return $posts; 
    852850    } else { 
    853851        return false;