Make WordPress Core

Opened 5 weeks ago

Closed 8 days ago

#66296 closed defect (bug) (fixed)

Remove the `hide-if-js` notice from `wp_dashboard_cached_rss_widget()`

Reported by: joedolson Owned by: peterwilsoncc
Priority: normal Milestone: 7.2
Component: Administration Version:
Severity: normal Keywords: has-patch
Cc: Focuses: javascript, administration

Description

As observed by @afercia in https://core.trac.wordpress.org/ticket/50486#comment:85, the admin notice in wp_dashboard_cached_rss_widget() is hidden if JS is enabled, but the container it's wrapped in carries the class hide-if-no-js. Given that, there is no situation in which the admin notice will actually be shown.

With JS, the notice is hidden; without JS the entire widget is hidden.

Change History (3)

This ticket was mentioned in ​PR #14226 on ​WordPress/wordpress-develop by ​@rishabhwp.


5 weeks ago
#1

  • Keywords has-patch added

Removes the "This widget requires JavaScript." notice from wp_dashboard_cached_rss_widget(). Nobody can see it.

Use of AI Tools

AI assistance: Yes
Tool(s): Claude Code
Model(s): Claude Opus 5.5, Claude Sonnet 5.5
Used for: Code Review

#2 @peterwilsoncc
8 days ago

  • Component General → Administration

#3 @peterwilsoncc
8 days ago

  • Owner set to peterwilsoncc
  • Resolution → fixed
  • Status new → closed

In 65293:

Administration: Remove unnoticeable notice from RSS dashboard Widget.

Remove notice that the RSS portion of the "WordPress Events and News" dashboard widget requires JavaScript. The container in which the notice is displayed is hidden if JavaScript is unavailable so the notice is never visible to user.

The widget level notice "The WordPress Events and News feeds require JavaScript" is unchanged as that is displayed to users when JavaScript is turned off in the browser.

Props rishabhwp, joedolson, afercia.
Fixes #66296.

Note: See TracTickets for help on using tickets.