From e4a0f2dcaba98550b127ca39bcc54b6fbba549f6 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 2 Apr 2019 13:33:47 +0000 Subject: [PATCH] Docs: Fix typo in a comment in `unzip_file()`. Props mukesh27. Fixes #46766. git-svn-id: https://develop.svn.wordpress.org/trunk@45098 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/file.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wp-admin/includes/file.php b/src/wp-admin/includes/file.php index bbae7bed4d..3c245a2226 100644 --- a/src/wp-admin/includes/file.php +++ b/src/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. } } }