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: https://develop.svn.wordpress.org/trunk@17782 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b689806382
commit
703a0e99e1
@ -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
Block a user