From faf6383ebd3e85863cc4bad49c55371fd70c29c5 Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Mon, 15 Jun 2015 06:26:25 +0000 Subject: [PATCH] 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 Built from https://develop.svn.wordpress.org/trunk@32784 git-svn-id: http://core.svn.wordpress.org/trunk@32755 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/update.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/update.php b/wp-admin/includes/update.php index 943e19cd26..4f6c686431 100644 --- a/wp-admin/includes/update.php +++ b/wp-admin/includes/update.php @@ -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 '
'; if ( ! current_user_can( 'update_plugins' ) ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index 819500c3ca..87701b3cbd 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.3-alpha-32783'; +$wp_version = '4.3-alpha-32784'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.