Provide no-js message on the dashboard when the cache is not hot and an XHR is required. props ocean90. see #16927
git-svn-id: http://svn.automattic.com/wordpress/trunk@17782 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ddafa3c6d7
commit
8464d7203d
|
@ -1016,7 +1016,7 @@ function wp_dashboard_plugins_output() {
|
|||
* @return bool False on failure. True on success.
|
||||
*/
|
||||
function wp_dashboard_cached_rss_widget( $widget_id, $callback, $check_urls = array() ) {
|
||||
$loading = '<p class="widget-loading">' . __( 'Loading…' ) . '</p>';
|
||||
$loading = '<p class="widget-loading hide-if-no-js">' . __( 'Loading…' ) . '</p><p class="hide-if-js">' . __( 'This widget requires JavaScript.' ) . '</p>';
|
||||
|
||||
if ( empty($check_urls) ) {
|
||||
$widgets = get_option( 'dashboard_widget_options' );
|
||||
|
|
Loading…
Reference in New Issue