From 281d6bb761cf4b8c2cf619e77126f3b430f5f5e2 Mon Sep 17 00:00:00 2001 From: azaozz Date: Wed, 10 Jun 2009 10:16:00 +0000 Subject: [PATCH] Fix plugin version check when updating, props dd32, fixes #10058 git-svn-id: http://svn.automattic.com/wordpress/trunk@11541 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/plugin-install.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/plugin-install.php b/wp-admin/includes/plugin-install.php index 28c9b28569..bcd9e1b2a2 100644 --- a/wp-admin/includes/plugin-install.php +++ b/wp-admin/includes/plugin-install.php @@ -455,7 +455,7 @@ function install_plugin_information() { $installed_plugin = get_plugins('/' . $api->slug); if ( ! empty($installed_plugin) ) { $key = array_shift( $key = array_keys($installed_plugin) ); //Use the first plugin regardless of the name, Could have issues for multiple-plugins in one directory if they share different version numbers - if ( version_compare($api->version, $installed_plugin[ $key ]['Version'], '>') ){ + if ( version_compare($api->version, $installed_plugin[ $key ]['Version'], '=') ){ $type = 'latest_installed'; } elseif ( version_compare($api->version, $installed_plugin[ $key ]['Version'], '<') ) { $type = 'newer_installed';