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
This commit is contained in:
Andrew Ozz 2009-06-10 10:16:00 +00:00
parent 282de2b9c0
commit 9c15878e5a
1 changed files with 1 additions and 1 deletions

View File

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