Restore original properties of the right now (activity) and primary (news) dashboard widgets.

This avoids issues with those trying to remove/disable core meta boxes.

fixes #26392.


git-svn-id: https://develop.svn.wordpress.org/trunk@26611 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2013-12-04 16:55:58 +00:00
parent 1ae2cf0efb
commit 3dcc14f58c
1 changed files with 1 additions and 3 deletions

View File

@ -37,7 +37,7 @@ function wp_dashboard_setup() {
// Right Now
if ( is_blog_admin() && current_user_can('edit_posts') )
wp_add_dashboard_widget( 'dash-right-now', __( 'Site Content' ), 'wp_dashboard_right_now' );
wp_add_dashboard_widget( 'dashboard_right_now', __( 'Site Content' ), 'wp_dashboard_right_now' );
if ( is_network_admin() )
wp_add_dashboard_widget( 'network_dashboard_right_now', __( 'Right Now' ), 'wp_network_dashboard_right_now' );
@ -117,8 +117,6 @@ function wp_add_dashboard_widget( $widget_id, $widget_name, $callback, $control_
$priority = 'core';
if ( 'dashboard_browser_nag' === $widget_id )
$priority = 'high';
elseif ( 'dashboard_primary' === $widget_id )
$priority = 'low';
add_meta_box( $widget_id, $widget_name, $callback, $screen, $location, $priority, $callback_args );
}