diff --git src/wp-includes/functions.php src/wp-includes/functions.php
index 53a2204..ed4a6fa 100644
|
|
function wp_mkdir_p( $target ) { |
1680 | 1680 | // We need to find the permissions of the parent folder that exists and inherit that. |
1681 | 1681 | $target_parent = dirname( $target ); |
1682 | 1682 | while ( '.' != $target_parent && ! is_dir( $target_parent ) ) { |
| 1683 | // Infinite loop protection (see https://core.trac.wordpress.org/ticket/43417) |
| 1684 | if ( dirname( $target_parent ) === $target_parent ) { |
| 1685 | break; |
| 1686 | } |
1683 | 1687 | $target_parent = dirname( $target_parent ); |
1684 | 1688 | } |
1685 | 1689 | |