diff --git a/wp-admin/css/dashboard.css b/wp-admin/css/dashboard.css index 8c8924e680..94d06eb1b9 100644 --- a/wp-admin/css/dashboard.css +++ b/wp-admin/css/dashboard.css @@ -85,6 +85,13 @@ div.postbox div.inside { padding: 0; } +#dashboard-widgets .heading { + font-size: 1em; + font-weight: normal; + font-style: italic; + font-family: Georgia, serif; +} + /* Right Now */ #dashboard_right_now p.sub, diff --git a/wp-admin/includes/dashboard.php b/wp-admin/includes/dashboard.php index 1fea8de356..7ce2e9a547 100644 --- a/wp-admin/includes/dashboard.php +++ b/wp-admin/includes/dashboard.php @@ -91,6 +91,11 @@ function wp_dashboard_setup() { // Filter widget order $dashboard_widgets = apply_filters( 'wp_dashboard_widgets', array() ); + foreach ( $dashboard_widgets as $widget_id ) { + $name = empty( $wp_registered_widgets[$widget_id]['all_link'] ) ? $wp_registered_widgets[$widget_id]['name'] : $wp_registered_widgets[$widget_id]['name'] . " " . __('View all') . ''; + wp_add_dashboard_widget( $widget_id, $name, $wp_registered_widgets[$widget_id]['callback'], $wp_registered_widget_controls[$widget_id]['callback'] ); + } + if ( 'POST' == $_SERVER['REQUEST_METHOD'] && isset($_POST['widget_id']) ) { ob_start(); // hack - but the same hack wp-admin/widgets.php uses wp_dashboard_trigger_widget_control( $_POST['widget_id'] ); @@ -102,9 +107,6 @@ function wp_dashboard_setup() { if ( $update ) update_option( 'dashboard_widget_options', $widget_options ); - foreach ( $dashboard_widgets as $widget_id ) - wp_add_dashboard_widget( $widget_id, $wp_registered_widgets[$widget_id]['name'], $wp_registered_widgets[$widget_id]['callback'], $wp_registered_widget_controls[$widget_id]['callback'] ); - do_action('do_meta_boxes', 'dashboard', 'normal', ''); do_action('do_meta_boxes', 'dashboard', 'side', ''); } @@ -130,7 +132,7 @@ function wp_add_dashboard_widget( $widget_id, $widget_name, $callback, $control_ } function _wp_dashboard_control_callback( $dashboard, $meta_box ) { - echo '