Don't display plugin compatibility info if the new WordPress version is the same as the current one. For example for RC/Beta upgrades. Props westi. fixes #11525 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@12477 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
7d45163e3e
commit
58c5f25c03
@ -153,7 +153,7 @@ function list_plugin_updates() {
|
||||
$form_action = 'update-core.php?action=do-plugin-upgrade';
|
||||
|
||||
$core_updates = get_core_updates();
|
||||
if ( !isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response )
|
||||
if ( !isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare( $core_updates[0]->current, $cur_wp_version, '=') )
|
||||
$core_update_version = false;
|
||||
else
|
||||
$core_update_version = $core_updates[0]->current;
|
||||
|
Loading…
Reference in New Issue
Block a user