Make WordPress Core

Ticket #36184: functions.php.2.patch

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

     
    16181618
    16191619        // We need to find the permissions of the parent folder that exists and inherit that.
    16201620        $target_parent = dirname( $target );
    1621         while ( '.' != $target_parent && ! is_dir( $target_parent ) ) {
     1621        while ( '.' != $target_parent && ! is_dir( $target_parent ) && @is_readable( $target_parent ) ) {
    16221622                $target_parent = dirname( $target_parent );
    16231623        }
    16241624