Ticket #40529: 40529.diff
| File 40529.diff, 2.2 KB (added by , 9 years ago) |
|---|
-
src/wp-admin/css/dashboard.css
308 308 padding: 0; 309 309 } 310 310 311 #dashboard_primary .widget-loading, 312 #dashboard_primary .dashboard-widget-control-form { 311 #dashboard_primary .widget-loading { 313 312 padding: 12px 12px 0; 313 margin-bottom: 1em !important; /* Needs to override `.postbox .inside > p:last-child` in common.css */ 314 314 } 315 315 316 body #dashboard-widgets .postbox form .submit { 316 /* Notice when JS is off. */ 317 #dashboard_primary .inside .notice { 317 318 margin: 0; 318 319 } 319 320 320 .dashboard-widget-control-form{321 overflow: hidden;321 body #dashboard-widgets .postbox form .submit { 322 margin: 0; 322 323 } 323 324 325 /* Used only for configurable widgets. */ 324 326 .dashboard-widget-control-form p { 325 327 margin-top: 0; 326 328 } -
src/wp-admin/includes/dashboard.php
191 191 * @param array $meta_box 192 192 */ 193 193 function _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">'; 195 195 wp_dashboard_trigger_widget_control( $meta_box['id'] ); 196 196 wp_nonce_field( 'edit-dashboard-widget_' . $meta_box['id'], 'dashboard-widget-nonce' ); 197 197 echo '<input type="hidden" name="widget_id" value="' . esc_attr($meta_box['id']) . '" />'; … … 968 968 * @return bool False on failure. True on success. 969 969 */ 970 970 function wp_dashboard_cached_rss_widget( $widget_id, $callback, $check_urls = array() ) { 971 $loading = '<p class="widget-loading hide-if-no-js">' . __( 'Loading…' ) . '</p>< p class="hide-if-js">' . __( 'This widget requires JavaScript.' ) . '</p>';971 $loading = '<p class="widget-loading hide-if-no-js">' . __( 'Loading…' ) . '</p><div class="hide-if-js notice notice-error notice-alt inline"><p>' . __( 'This widget requires JavaScript.' ) . '</p></div>'; 972 972 $doing_ajax = wp_doing_ajax(); 973 973 974 974 if ( empty($check_urls) ) {