Changeset 11541
- Timestamp:
- 06/10/2009 10:16:00 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/plugin-install.php
r11496 r11541 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'], '<') ) {
Note: See TracChangeset
for help on using the changeset viewer.