diff --git a/wp-admin/includes/update-core.php b/wp-admin/includes/update-core.php index 8866d09896..342e7c326b 100644 --- a/wp-admin/includes/update-core.php +++ b/wp-admin/includes/update-core.php @@ -907,6 +907,8 @@ function update_core($from, $to) { continue; if ( ! file_exists( $working_dir_local . $file ) ) continue; + if ( '.' === dirname( $file ) && in_array( pathinfo( $file, PATHINFO_EXTENSION ), array( 'html', 'txt' ) ) ) + continue; if ( md5_file( ABSPATH . $file ) === $checksum ) $skip[] = $file; else @@ -968,6 +970,10 @@ function update_core($from, $to) { continue; if ( ! file_exists( $working_dir_local . $file ) ) continue; + if ( '.' === dirname( $file ) && in_array( pathinfo( $file, PATHINFO_EXTENSION ), array( 'html', 'txt' ) ) ) { + $skip[] = $file; + continue; + } if ( file_exists( ABSPATH . $file ) && md5_file( ABSPATH . $file ) == $checksum ) $skip[] = $file; else diff --git a/wp-includes/version.php b/wp-includes/version.php index c375cfe546..5bb252554d 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.7-alpha-38897'; +$wp_version = '4.7-alpha-38898'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.