Docs: Fix typo in a comment in `unzip_file()`.
Props mukesh27. Fixes #46766. Built from https://develop.svn.wordpress.org/trunk@45098 git-svn-id: http://core.svn.wordpress.org/trunk@44907 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6d1f493d1d
commit
5291f46c8a
|
@ -1263,8 +1263,8 @@ function unzip_file( $file, $to ) {
|
||||||
$needed_dirs = array();
|
$needed_dirs = array();
|
||||||
$to = trailingslashit( $to );
|
$to = trailingslashit( $to );
|
||||||
|
|
||||||
// Determine any parent dir's needed (of the upgrade directory)
|
// Determine any parent directories needed (of the upgrade directory).
|
||||||
if ( ! $wp_filesystem->is_dir( $to ) ) { //Only do parents if no children exist
|
if ( ! $wp_filesystem->is_dir( $to ) ) { // Only do parents if no children exist.
|
||||||
$path = preg_split( '![/\\\]!', untrailingslashit( $to ) );
|
$path = preg_split( '![/\\\]!', untrailingslashit( $to ) );
|
||||||
for ( $i = count( $path ); $i >= 0; $i-- ) {
|
for ( $i = count( $path ); $i >= 0; $i-- ) {
|
||||||
if ( empty( $path[ $i ] ) ) {
|
if ( empty( $path[ $i ] ) ) {
|
||||||
|
@ -1279,7 +1279,7 @@ function unzip_file( $file, $to ) {
|
||||||
if ( ! $wp_filesystem->is_dir( $dir ) ) {
|
if ( ! $wp_filesystem->is_dir( $dir ) ) {
|
||||||
$needed_dirs[] = $dir;
|
$needed_dirs[] = $dir;
|
||||||
} else {
|
} 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.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue