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.

Built from https://develop.svn.wordpress.org/trunk@26611


git-svn-id: http://core.svn.wordpress.org/trunk@26501 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2013-12-04 16:56:10 +00:00
parent 8a622c122c
commit 7e5b2a013a

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 );
}