/** This action is documented in wp-admin/includes/class-wp-upgrader.php */
do_action( 'upgrader_process_complete',
$this,
array
( 'action' => 'update',
'type' => 'core',
) );
// Clear the current updates.
delete_site_transient( 'update_core'
);
if ( !
$parsed_args['do_rollback'
] ) { $stats = array
( 'update_type' =>
$current->response,
'success' => true,
'fs_method' =>
$wp_filesystem->method,
'fs_method_forced' =>
defined( 'FS_METHOD'
) ||
has_filter( 'filesystem_method'
),
'fs_method_direct' => !
empty( $GLOBALS['_wp_filesystem_direct_method'
] ) ?
$GLOBALS['_wp_filesystem_direct_method'
] : '',
'time_taken' =>
time() -
$start_time,
'reported' =>
$wp_version,
'attempted' =>
$current->version,
);