Make WordPress Core


Ignore:
Timestamp:
04/02/2019 01:33:47 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Docs: Fix typo in a comment in unzip_file().

Props mukesh27.
Fixes #46766.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/file.php

    r45062 r45098  
    12641264    $to          = trailingslashit( $to );
    12651265
    1266     // Determine any parent dir's needed (of the upgrade directory)
    1267     if ( ! $wp_filesystem->is_dir( $to ) ) { //Only do parents if no children exist
     1266    // Determine any parent directories needed (of the upgrade directory).
     1267    if ( ! $wp_filesystem->is_dir( $to ) ) { // Only do parents if no children exist.
    12681268        $path = preg_split( '![/\\\]!', untrailingslashit( $to ) );
    12691269        for ( $i = count( $path ); $i >= 0; $i-- ) {
     
    12801280                $needed_dirs[] = $dir;
    12811281            } else {
    1282                 break; // A folder exists, therefor, we dont need the check the levels below this
     1282                break; // A folder exists, therefore we don't need to check the levels below this.
    12831283            }
    12841284        }
Note: See TracChangeset for help on using the changeset viewer.