// Pretend this error didn't happen.
$download =
$download->
get_error_data( 'softfail-filename'
);
} if ( is_wp_error( $download ) ) { WP_Upgrader::
release_lock( 'core_updater'
);
return $download;
} $working_dir =
$this->
unpack_package( $download );
if ( is_wp_error( $working_dir ) ) { WP_Upgrader::
release_lock( 'core_updater'
);
return $working_dir;
} // Copy update-core.php from the new version into place.
if ( !
$wp_filesystem->
copy( $working_dir . '/wordpress/wp-admin/includes/update-core.php',
$wp_dir . 'wp-admin/includes/update-core.php', true
) ) { $wp_filesystem->
delete( $working_dir, true
);
WP_Upgrader::
release_lock( 'core_updater'
);
return new WP_Error( 'copy_failed_for_update_core_file',
__( 'The update cannot be installed because some files could not be copied. This is usually due to inconsistent file permissions.'
), 'wp-admin/includes/update-core.php'
);
}