From 236f388d6d1a7e931aac3ec91234142271eac5c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Helen=20Hou-Sand=C3=AD?= Date: Tue, 26 Nov 2013 05:29:10 +0000 Subject: [PATCH] Don't show the Activity widget on the Network Admin Dashboard. props ocean90. fixes #26184. Built from https://develop.svn.wordpress.org/trunk@26394 git-svn-id: http://core.svn.wordpress.org/trunk@26294 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/dashboard.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-admin/includes/dashboard.php b/wp-admin/includes/dashboard.php index d73d8f2b61..91bcbf45be 100644 --- a/wp-admin/includes/dashboard.php +++ b/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' ) )