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:
ryan 2009-12-21 23:54:52 +00:00
parent 07fd78ef79
commit e11e569611

View File

@ -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;