mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-30 23:30:05 +00:00
Don't show the Activity widget on the Network Admin Dashboard. props ocean90. fixes #26184.
git-svn-id: https://develop.svn.wordpress.org/trunk@26394 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -43,7 +43,9 @@ function wp_dashboard_setup() {
|
||||
wp_add_dashboard_widget( 'network_dashboard_right_now', __( 'Right Now' ), 'wp_network_dashboard_right_now' );
|
||||
|
||||
// Activity Widget
|
||||
wp_add_dashboard_widget( 'dashboard_activity', __( 'Activity' ), 'wp_dashboard_activity' );
|
||||
if ( is_blog_admin() ) {
|
||||
wp_add_dashboard_widget( 'dashboard_activity', __( 'Activity' ), 'wp_dashboard_activity' );
|
||||
}
|
||||
|
||||
// QuickPress Widget
|
||||
if ( is_blog_admin() && current_user_can( 'edit_posts' ) )
|
||||
|
||||
Reference in New Issue
Block a user