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:
Mark Jaquith 2011-04-30 17:24:06 +00:00
parent b689806382
commit 703a0e99e1
1 changed files with 1 additions and 1 deletions

View File

@ -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&#8230;' ) . '</p>';
$loading = '<p class="widget-loading hide-if-no-js">' . __( 'Loading&#8230;' ) . '</p><p class="hide-if-js">' . __( 'This widget requires JavaScript.' ) . '</p>';
if ( empty($check_urls) ) {
$widgets = get_option( 'dashboard_widget_options' );