diff --git a/wp-admin/includes/file.php b/wp-admin/includes/file.php index bbae7bed4d..3c245a2226 100644 --- a/wp-admin/includes/file.php +++ b/wp-admin/includes/file.php @@ -1263,8 +1263,8 @@ function unzip_file( $file, $to ) { $needed_dirs = array(); $to = trailingslashit( $to ); - // Determine any parent dir's needed (of the upgrade directory) - if ( ! $wp_filesystem->is_dir( $to ) ) { //Only do parents if no children exist + // Determine any parent directories needed (of the upgrade directory). + if ( ! $wp_filesystem->is_dir( $to ) ) { // Only do parents if no children exist. $path = preg_split( '![/\\\]!', untrailingslashit( $to ) ); for ( $i = count( $path ); $i >= 0; $i-- ) { if ( empty( $path[ $i ] ) ) { @@ -1279,7 +1279,7 @@ function unzip_file( $file, $to ) { if ( ! $wp_filesystem->is_dir( $dir ) ) { $needed_dirs[] = $dir; } else { - break; // A folder exists, therefor, we dont need the check the levels below this + break; // A folder exists, therefore we don't need to check the levels below this. } } } diff --git a/wp-includes/version.php b/wp-includes/version.php index fa67a3cc5b..4d52a6385e 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.2-beta1-45097'; +$wp_version = '5.2-beta1-45098'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.