diff --git a/wp-includes/functions.php b/wp-includes/functions.php
index 292abf9..66b53a8 100644
a
|
b
|
function wp_mkdir_p( $target ) { |
1618 | 1618 | |
1619 | 1619 | // We need to find the permissions of the parent folder that exists and inherit that. |
1620 | 1620 | $target_parent = dirname( $target ); |
1621 | | while ( '.' != $target_parent && ! is_dir( $target_parent ) ) { |
| 1621 | while ( '.' != $target_parent && ! is_dir( $target_parent ) && @is_readable( $target_parent ) ) { |
1622 | 1622 | $target_parent = dirname( $target_parent ); |
1623 | 1623 | } |