Ticket #10058: 10058.diff
| File 10058.diff, 897 bytes (added by , 17 years ago) |
|---|
-
wp-admin/includes/plugin-install.php
455 455 $installed_plugin = get_plugins('/' . $api->slug); 456 456 if ( ! empty($installed_plugin) ) { 457 457 $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'], '=') ){ 459 459 $type = 'latest_installed'; 460 460 } elseif ( version_compare($api->version, $installed_plugin[ $key ]['Version'], '<') ) { 461 461 $type = 'newer_installed';