WP_Widget_RSS widget outputs error if 0 posts found in feed. Should output "No posts found"
|Reported by:||ericlewis||Owned by:|
The output function for WP_Widget_RSS does a conditional check to see if the feed has returned an error, by checking if $rss->get_item_quantity() returns false. If it does return false the output says "An error occurred," which may not be true if the feed just has no posts yet.
This can be remedied by changing the conditional as I have, to check if $rss->get_item_quantity() is identical to false, so if the method get_item_quantity returns 0 an alternate else if will output "No posts found."