Make WordPress Core

Opened 3 years ago

Last modified 3 years ago

#32065 new enhancement

Hide entire RSS widget when no items to display

Reported by: MadtownLems Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.2
Component: Widgets Keywords:
Focuses: Cc:


When a default RSS widget has no items to display, the following text is displayed: "An error has occurred, which probably means the feed is down. Try again later."

I don't believe that this message is particularly useful to readers and suggest that in the event that an RSS Widget is - for whatever reason - unable to display any items, that the widget just doesn't appear at all, rather than display an unhelpful and ugly message.

An alternative implementation is to conditionalize this output with something like current_user_can( 'edit_theme_options' ). This would allow users who can actually control Widgets to still see the output, but standard readers wouldn't have to see it.

Change History (1)

#1 @welcher
3 years ago

I think it's a good idea. Did you want to put together a patch to get the conversation started?

Related #23012.

Last edited 3 years ago by welcher (previous) (diff)
Note: See TracTickets for help on using tickets.