diff --git a/src/wp-admin/includes/class-wp-upgrader.php b/src/wp-admin/includes/class-wp-upgrader.php index 8684e46871..e30da50c2c 100644 --- a/src/wp-admin/includes/class-wp-upgrader.php +++ b/src/wp-admin/includes/class-wp-upgrader.php @@ -652,7 +652,7 @@ class WP_Upgrader { * destination folder. Default false. * @type bool $clear_working Whether to delete the files from the working * directory after copying them to the destination. - * Default false. + * Default true. * @type bool $abort_if_destination_exists Whether to abort the installation if the destination * folder already exists. When true, `$clear_destination` * should be false. Default true. @@ -672,8 +672,8 @@ class WP_Upgrader { 'package' => '', // Please always pass this. 'destination' => '', // ...and this. 'clear_destination' => false, - 'abort_if_destination_exists' => true, // Abort if the destination directory exists. Pass clear_destination as false please. 'clear_working' => true, + 'abort_if_destination_exists' => true, // Abort if the destination directory exists. Pass clear_destination as false please. 'is_multi' => false, 'hook_extra' => array(), // Pass any extra $hook_extra args here, this will be passed to any hooked filters. );