From 2fbde17aba850b7d5c28d789e6e499c1b1b84f08 Mon Sep 17 00:00:00 2001 From: Helen Hou-Sandi Date: Tue, 26 Nov 2013 05:28:46 +0000 Subject: [PATCH] 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 --- src/wp-admin/includes/dashboard.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/wp-admin/includes/dashboard.php b/src/wp-admin/includes/dashboard.php index d73d8f2b61..91bcbf45be 100644 --- a/src/wp-admin/includes/dashboard.php +++ b/src/wp-admin/includes/dashboard.php @@ -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' ) )