Ticket #38024: 38024.diff
| File 38024.diff, 2.6 KB (added by , 9 years ago) |
|---|
-
src/wp-admin/includes/class-plugin-upgrader.php
147 147 148 148 $defaults = array( 149 149 'clear_update_cache' => true, 150 'is_multi' => false 150 151 ); 151 152 $parsed_args = wp_parse_args( $args, $defaults ); 152 153 … … 172 173 add_action( 'upgrader_process_complete', 'wp_clean_plugins_cache', 9, 0 ); 173 174 174 175 $this->run( array( 175 'package' => $r->package,176 'destination' => WP_PLUGIN_DIR,176 'package' => $r->package, 177 'destination' => WP_PLUGIN_DIR, 177 178 'clear_destination' => true, 178 'clear_working' => true, 179 'hook_extra' => array( 179 'clear_working' => true, 180 'is_multi' => $parsed_args['is_multi'], 181 'hook_extra' => array( 180 182 'plugin' => $plugin, 181 'type' => 'plugin',183 'type' => 'plugin', 182 184 'action' => 'update', 183 185 ), 184 186 ) ); -
src/wp-admin/includes/class-theme-upgrader.php
248 248 249 249 $defaults = array( 250 250 'clear_update_cache' => true, 251 'is_multi' => false 251 252 ); 252 253 $parsed_args = wp_parse_args( $args, $defaults ); 253 254 … … 273 274 add_action( 'upgrader_process_complete', 'wp_clean_themes_cache', 9, 0 ); 274 275 275 276 $this->run( array( 276 'package' => $r['package'],277 'destination' => get_theme_root( $theme ),277 'package' => $r['package'], 278 'destination' => get_theme_root( $theme ), 278 279 'clear_destination' => true, 279 'clear_working' => true, 280 'hook_extra' => array( 281 'theme' => $theme, 282 'type' => 'theme', 280 'clear_working' => true, 281 'is_multi' => $parsed_args['is_multi'], 282 'hook_extra' => array( 283 'theme' => $theme, 284 'type' => 'theme', 283 285 'action' => 'update', 284 286 ), 285 287 ) ); -
src/wp-admin/includes/class-wp-automatic-updater.php
335 335 'attempt_rollback' => true, 336 336 // Allow relaxed file ownership in some scenarios 337 337 'allow_relaxed_file_ownership' => $allow_relaxed_file_ownership, 338 // Allow for multiple updates 339 'is_multi' => true 338 340 ) ); 339 341 340 342 // If the filesystem is unavailable, false is returned.