Add RSS Error handling functionality to RSS Widget displays
|Reported by:||DD32||Owned by:||anonymous|
Upon hitting a SimplePie(and thus, WP_Error) error condition, The RSS widgets die with a fatal error.
Attached patch checks for WP_Error, and exits the function as expected (from pervious behaviour). If the user is an admin (Or its on the dashboard), The user recieves a message along the lines of "RSS Error: WP HTTP: no route to host"
Of course, The check for is_admin() can be removed.. Which might suit it better for cases where non-admins/non-staff access such pages.. Wasnt sure at the time of writing the patch.