[wp-trac] Re: [WordPress Trac] #9273: Add RSS Error handling functionality to RSS Widget displays

WordPress Trac wp-trac at lists.automattic.com
Wed Mar 4 11:25:11 GMT 2009


#9273: Add RSS Error handling functionality to RSS Widget displays
--------------------------+-------------------------------------------------
 Reporter:  DD32          |       Owner:  anonymous
     Type:  defect (bug)  |      Status:  new      
 Priority:  normal        |   Milestone:  2.8      
Component:  General       |     Version:  2.8      
 Severity:  normal        |    Keywords:  has-patch
--------------------------+-------------------------------------------------

Comment(by DD32):

 Uh... I might've done that stupidly.

 {{{
 if ( !$rss = fetch_feed($rss['url']) )
                         return;
 }}}

 Of course, The problem is that fetch_feed() is returning a WP_Error now
 instead of false.. Since fetch_feed is going to return a simplepie object
 from now on, I've got a feeling it might be better to just continue to
 return a WP_Error, and ignore the back-compat since its already gone..

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/9273#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list