Changeset 32571 for trunk/src/wp-admin/includes/ajax-actions.php
- Timestamp:
- 05/24/2015 08:44:09 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ajax-actions.php
r32570 r32571 2923 2923 } 2924 2924 2925 $upgrader = new Plugin_Upgrader( new Automatic_Upgrader_Skin() ); 2925 $skin = new Automatic_Upgrader_Skin(); 2926 $upgrader = new Plugin_Upgrader( $skin ); 2926 2927 $result = $upgrader->bulk_upgrade( array( $plugin ) ); 2927 2928 2928 if ( is_array( $result ) ) { 2929 if ( is_array( $result ) && empty( $result[$plugin] ) && is_wp_error( $skin->result ) ) { 2930 $result = $skin->result; 2931 } 2932 2933 if ( is_array( $result ) && !empty( $result[ $plugin ] ) ) { 2929 2934 $plugin_update_data = current( $result ); 2930 2935
Note: See TracChangeset
for help on using the changeset viewer.