mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-05 02:10:45 +01:00
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:
parent
8a622c122c
commit
7e5b2a013a
@ -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 );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user