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
This commit is contained in:
parent
bfc9fc4040
commit
3cf5d40b9d
@ -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 .= '<br />' . 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 .= '<br />' . 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 {
|
||||
|
Loading…
Reference in New Issue
Block a user