Ticket #24747: 24747.patch
File 24747.patch, 1.1 KB (added by , 11 years ago) |
---|
-
wp-admin/includes/plugin-install.php
229 229 if ( current_user_can('install_plugins') ) 230 230 $url = wp_nonce_url(self_admin_url('update.php?action=install-plugin&plugin=' . $api->slug), 'install-plugin_' . $api->slug); 231 231 } else { 232 $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 232 $key = array_keys( $installed_plugin ); 233 $key = array_shift( $key ); //Use the first plugin regardless of the name, Could have issues for multiple-plugins in one directory if they share different version numbers 233 234 if ( version_compare($api->version, $installed_plugin[ $key ]['Version'], '=') ){ 234 235 $status = 'latest_installed'; 235 236 } elseif ( version_compare($api->version, $installed_plugin[ $key ]['Version'], '<') ) {