From 3cf5d40b9d81ac4ae505dfe084b5b52681bfa552 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Sat, 19 Sep 2015 16:09:40 +0000 Subject: [PATCH] Update Core: In `list_plugin_updates()`, when listing plugin updates related to `$core_update_version`, don't skip the check for `$info->tested`. Props MikeHansenMe. Fixes #27883. git-svn-id: https://develop.svn.wordpress.org/trunk@34322 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/update-core.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/wp-admin/update-core.php b/src/wp-admin/update-core.php index 3e4f3eefe6..3e3e24c60f 100644 --- a/src/wp-admin/update-core.php +++ b/src/wp-admin/update-core.php @@ -269,7 +269,9 @@ function list_plugin_updates() { } // Get plugin compat for updated version of WordPress. if ( $core_update_version ) { - if ( isset($info->compatibility[$core_update_version][$plugin_data->update->new_version]) ) { + if ( isset( $info->tested ) && version_compare( $info->tested, $core_update_version, '>=' ) ) { + $compat .= '
' . sprintf( __( 'Compatibility with WordPress %1$s: 100%% (according to its author)' ), $core_update_version ); + } elseif ( isset( $info->compatibility[ $core_update_version ][ $plugin_data->update->new_version ] ) ) { $update_compat = $info->compatibility[$core_update_version][$plugin_data->update->new_version]; $compat .= '
' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat[0], $update_compat[2], $update_compat[1]); } else {