[wp-trac] [WordPress Trac] #18704: WP_Widget_RSS widget outputs error if 0 posts found in feed. Should output "No posts found"

WordPress Trac wp-trac at lists.automattic.com
Fri Feb 10 05:34:48 UTC 2012


#18704: WP_Widget_RSS widget outputs error if 0 posts found in feed. Should output
"No posts found"
------------------------------------+----------------------
 Reporter:  ericlewis               |       Owner:
     Type:  defect (bug)            |      Status:  closed
 Priority:  normal                  |   Milestone:
Component:  Widgets                 |     Version:  3.2.1
 Severity:  normal                  |  Resolution:  invalid
 Keywords:  has-patch dev-feedback  |
------------------------------------+----------------------

Comment (by ericlewis):

 Yeah, the issue I was having was that if the fetch_rss() returned bad
 there would be a wp_error produced, whereas if the parsing of the feed
 gets far enough to check get_item_quantity(), it is a legitimate feed,
 that just may have no posts in it.

 So perhaps the issue is just with the fact that is an RSS feed has 0
 posts, the widget says there is an error with the feed, when it actually
 just has no posts in it. Not enough to reopen this ticket though, I'm not
 sure it's a legitimate concern.

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


More information about the wp-trac mailing list