From dabe7ab9c31c99f297f8b55872cfe303c758727d Mon Sep 17 00:00:00 2001 From: Jeremy Felt Date: Tue, 7 Jul 2015 00:01:31 +0000 Subject: [PATCH] Assign proper active class when showing plugin updates in network admin Previously, a plugin would trigger an active class if it was active on the network's main site. Fixes #32901. git-svn-id: https://develop.svn.wordpress.org/trunk@33100 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/update.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/wp-admin/includes/update.php b/src/wp-admin/includes/update.php index 4f6c686431..9bbb0c0f88 100644 --- a/src/wp-admin/includes/update.php +++ b/src/wp-admin/includes/update.php @@ -315,7 +315,12 @@ function wp_plugin_update_row( $file, $plugin_data ) { $wp_list_table = _get_list_table('WP_Plugins_List_Table'); if ( is_network_admin() || !is_multisite() ) { - $active_class = is_plugin_active( $file ) ? ' active' : ''; + if ( is_network_admin() ) { + $active_class = is_plugin_active_for_network( $file ) ? ' active': ''; + } else { + $active_class = is_plugin_active( $file ) ? ' active' : ''; + } + echo '
'; if ( ! current_user_can( 'update_plugins' ) ) {