From 9c15878e5a977b1375e95e871c6f95e0807c7c56 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Wed, 10 Jun 2009 10:16:00 +0000 Subject: [PATCH] Fix plugin version check when updating, props dd32, fixes #10058 git-svn-id: https://develop.svn.wordpress.org/trunk@11541 602fd350-edb4-49c9-b593-d223f7449a82 --- 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';