Make WordPress Core

Changeset 11541


Ignore:
Timestamp:
06/10/2009 10:16:00 AM (15 years ago)
Author:
azaozz
Message:

Fix plugin version check when updating, props dd32, fixes #10058

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/plugin-install.php

    r11496 r11541  
    456456                if ( ! empty($installed_plugin) ) {
    457457                    $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
    458                     if ( version_compare($api->version, $installed_plugin[ $key ]['Version'], '>') ){
     458                    if ( version_compare($api->version, $installed_plugin[ $key ]['Version'], '=') ){
    459459                        $type = 'latest_installed';
    460460                    } elseif ( version_compare($api->version, $installed_plugin[ $key ]['Version'], '<') ) {
Note: See TracChangeset for help on using the changeset viewer.