[wp-trac] [WordPress Trac] #3527: wp-include/rss-functions.php function get_rss has a bug

WordPress Trac wp-trac at lists.automattic.com
Fri Jan 5 13:47:31 GMT 2007


#3527: wp-include/rss-functions.php function get_rss has a bug
---------------------+------------------------------------------------------
 Reporter:  zuzara   |       Owner:  anonymous
     Type:  defect   |      Status:  new      
 Priority:  low      |   Milestone:  2.0.7    
Component:  General  |     Version:           
 Severity:  minor    |    Keywords:  get_rss  
---------------------+------------------------------------------------------
 Version 2.0.6 has a typo bug in wp-include/rss-functions.php ( Revision
 4495, wp-includes/rss.php )
 {{{
 *** rss-functions.php   2007-01-05 22:30:06.000000000 +0900
 --- rss-functions.php.new       2007-01-05 22:32:49.000000000 +0900
 ***************
 *** 838,844 ****
   }

   function get_rss ($uri, $num = 5) { // Like get posts, but for RSS
 !       $rss = fetch_rss($url);
         if ( $rss ) {
                 $rss->items = array_slice($rss->items, 0, $num_items);
                 foreach ($rss->items as $item ) {
 --- 838,845 ----
   }

   function get_rss ($uri, $num = 5) { // Like get posts, but for RSS
 !       $num_items = $num;
 !       $rss = fetch_rss($uri);
         if ( $rss ) {
                 $rss->items = array_slice($rss->items, 0, $num_items);
                 foreach ($rss->items as $item ) {
 }}}

-- 
Ticket URL: <http://trac.wordpress.org/ticket/3527>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list