[wp-trac] [WordPress Trac] #4495: rss_fetch doesn't, after upgrade from v2.12 to 2.2

WordPress Trac wp-trac at lists.automattic.com
Wed Jun 20 03:02:33 GMT 2007


#4495: rss_fetch doesn't, after upgrade from v2.12 to 2.2
----------------------+-----------------------------------------------------
 Reporter:  daviding  |       Owner:  anonymous
     Type:  defect    |      Status:  new      
 Priority:  normal    |   Milestone:  2.2.2    
Component:  General   |     Version:  2.2      
 Severity:  normal    |    Keywords:  rss_fetch
----------------------+-----------------------------------------------------
 I had reported this problem at
 http://wordpress.org/support/topic/122141?replies=6 , and got some help to
 fix my "foreach" question.  However, the problem remains unresolved.

 I have three blogs on the same server (they're all site5.com Fantastico).
 I upgraded http://daviding.com/blog to v2.2, but
 http://coevolving.com/blogs is still at v2.1.2 .    On
 http://daviding.com/blog , I have the following code in the sidebar:

 {{{
 <h2>Recently on coevolving.com</h2>
 <?php require_once(ABSPATH . WPINC . '/rss-functions.php'); ?>
 <?php $rss = fetch_rss('http://coevolving.com/blogs/index.php/feed/'); ?>
 <ul>
 <?php if (empty($rss->items)) echo "<li>No items</li>";
 else
 foreach ( $rss->items as $item ) : ?>
 <li><a href='<?php echo $item['link']; ?>'
 title='<?php echo $item['title']; ?>'>
 <?php echo $item['title']; ?>
 </a></li>
 <?php endforeach; ?>
 </ul>
 }}}

 This returns "No items", even though there is content in the feed from
 http://coevolving.com .  The two web sites used to feed each other
 symmetrically.  Unchanged, http://coevolving.com/blogs -- still at
 Wordpress v2.1.2 -- has the code that had worked before the upgrade:

 {{{
 <h2>Recently on daviding.com</h2>
 <?php require_once(ABSPATH . WPINC . '/rss-functions.php'); ?>
 <?php $rss = fetch_rss('http://daviding.com/blog/index.php/feed/'); ?>
 <ul>
 <?php foreach ( $rss->items as $item ) : ?>
 <li><a href='<?php echo $item['link']; ?>'
 title='<?php echo $item['title']; ?>'>
 <?php echo $item['title']; ?>
 </a></li>
 <?php endforeach; ?>
 </ul>
 }}}

 Looking at http://coevolving.com/blogs , it is continues to receive the
 feed from http://daviding.com/blog .

 In a debugging attempt on the v2.2 upgrade, I had disabled as many of the
 plugins as I could, with no change in results.  This feels like a bug in
 Wordpress v2.2.

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


More information about the wp-trac mailing list