Make WordPress Core

Changeset 4718


Ignore:
Timestamp:
01/11/2007 03:21:35 AM (18 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/rss.php

    r4495 r4718  
    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;
Note: See TracChangeset for help on using the changeset viewer.