Make WordPress Core


Ignore:
Timestamp:
04/25/2017 04:41:26 PM (8 years ago)
Author:
afercia
Message:

Widgets: Improve the News dashboard widget no-js notice.

In the rare case this notice was displayed, it was unstyled. Uses the notice
error style to make it prettier and consistent with other no-js notices.
Also, some CSS clean-up.

Fixes #40529.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/dashboard.php

    r40394 r40556  
    192192 */
    193193function _wp_dashboard_control_callback( $dashboard, $meta_box ) {
    194     echo '<form method="post" class="dashboard-widget-control-form">';
     194    echo '<form method="post" class="dashboard-widget-control-form wp-clearfix">';
    195195    wp_dashboard_trigger_widget_control( $meta_box['id'] );
    196196    wp_nonce_field( 'edit-dashboard-widget_' . $meta_box['id'], 'dashboard-widget-nonce' );
     
    969969 */
    970970function wp_dashboard_cached_rss_widget( $widget_id, $callback, $check_urls = array() ) {
    971     $loading = '<p class="widget-loading hide-if-no-js">' . __( 'Loading&#8230;' ) . '</p><p class="hide-if-js">' . __( 'This widget requires JavaScript.' ) . '</p>';
     971    $loading = '<p class="widget-loading hide-if-no-js">' . __( 'Loading&#8230;' ) . '</p><div class="hide-if-js notice notice-error inline"><p>' . __( 'This widget requires JavaScript.' ) . '</p></div>';
    972972    $doing_ajax = wp_doing_ajax();
    973973
Note: See TracChangeset for help on using the changeset viewer.