Updates: Consistently use the same variable to refer to the plugin, avoids a potential PHP Notice when an external update script adds data without that key.

Props mordauk. Fixes #31784


git-svn-id: https://develop.svn.wordpress.org/trunk@32784 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dion Hulse 2015-06-15 06:25:58 +00:00
parent 8455dd10da
commit 9f2ad2538e
1 changed files with 1 additions and 1 deletions

View File

@ -315,7 +315,7 @@ 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( $plugin_data['plugin'] ) ) ? ' active' : '';
$active_class = is_plugin_active( $file ) ? ' active' : '';
echo '<tr class="plugin-update-tr' . $active_class . '" id="' . esc_attr( $r->slug . '-update' ) . '" data-slug="' . esc_attr( $r->slug ) . '" data-plugin="' . esc_attr( $file ) . '"><td colspan="' . esc_attr( $wp_list_table->get_column_count() ) . '" class="plugin-update colspanchange"><div class="update-message">';
if ( ! current_user_can( 'update_plugins' ) ) {