From 58c5f25c033a8cbc41997ab47bd7d17cdf230191 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Mon, 21 Dec 2009 23:54:52 +0000 Subject: [PATCH] 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 --- wp-admin/update-core.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/update-core.php b/wp-admin/update-core.php index ed24f180fd..bdb6aa3c0c 100644 --- a/wp-admin/update-core.php +++ b/wp-admin/update-core.php @@ -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;