mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
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: http://svn.automattic.com/wordpress/trunk@12477 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
07fd78ef79
commit
e11e569611
@ -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