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:
markjaquith 2011-04-30 17:24:06 +00:00
parent ddafa3c6d7
commit 8464d7203d
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' );