Make WordPress Core

Ticket #36184: functions.php.patch

File functions.php.patch, 568 bytes (added by wgrafael, 7 years ago)
  • wp-includes/functions.php

     
    16041604
    16051605        // We need to find the permissions of the parent folder that exists and inherit that.
    16061606        $target_parent = dirname( $target );
    1607         while ( '.' != $target_parent && ! is_dir( $target_parent ) ) {
     1607        while ( '.' != $target_parent && ! is_dir( $target_parent ) && @is_readable( $target_parent ) ) {
    16081608                $target_parent = dirname( $target_parent );
    16091609        }
    16101610