mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-24 21:32:51 +02:00
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. Built from https://develop.svn.wordpress.org/trunk@34322 git-svn-id: http://core.svn.wordpress.org/trunk@34286 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8d8252aa89
commit
6dc9ffc090
@ -269,7 +269,9 @@ function list_plugin_updates() {
|
|||||||
}
|
}
|
||||||
// Get plugin compat for updated version of WordPress.
|
// Get plugin compat for updated version of WordPress.
|
||||||
if ( $core_update_version ) {
|
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];
|
$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]);
|
$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 {
|
} else {
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.4-alpha-34321';
|
$wp_version = '4.4-alpha-34322';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user