$skip = array
( 'wp-content', 'wp-includes/version.php'
);
$check_is_writable = array
();
// Check to see which files don't really need updating - only available for 3.7 and higher.
if ( function_exists( 'get_core_checksums'
) ) { // Find the local version of the working directory.
$working_dir_local = WP_CONTENT_DIR . '/upgrade/' .
basename( $from ) .
$distro;
$checksums =
get_core_checksums( $wp_version,
isset( $wp_local_package ) ?
$wp_local_package : 'en_US'
);
if ( is_array( $checksums ) &&
isset( $checksums[ $wp_version ] ) ) { $checksums =
$checksums[ $wp_version ]; // Compat code for 3.7-beta2.
} if ( is_array( $checksums ) ) { foreach ( $checksums as $file =>
$checksum ) { /*
* Note: str_starts_with() is not used here, as this file is included
* when updating from older WordPress versions, in which case
* the polyfills from wp-includes/compat.php may not be available.
*/