Changeset 31333 for trunk/src/wp-admin/includes/plugin-install.php
- Timestamp:
- 02/05/2015 04:18:57 AM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/includes/plugin-install.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/plugin-install.php
r31326 r31333 277 277 $status = 'install'; 278 278 $url = false; 279 $update_file = false; 279 280 280 281 /* … … 305 306 $key = array_keys( $installed_plugin ); 306 307 $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 308 $update_file = $api->slug . '/' . $key; 307 309 if ( version_compare($api->version, $installed_plugin[ $key ]['Version'], '=') ){ 308 310 $status = 'latest_installed'; … … 328 330 $url .= '&from=' . urlencode( wp_unslash( $_GET['from'] ) ); 329 331 330 return compact('status', 'url', 'version'); 332 $file = $update_file; 333 return compact( 'status', 'url', 'version', 'file' ); 331 334 } 332 335
Note: See TracChangeset
for help on using the changeset viewer.