diff --git a/wp-includes/functions.php b/wp-includes/functions.php index ba56521cf3..f013058d07 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -1679,7 +1679,7 @@ function wp_mkdir_p( $target ) { // We need to find the permissions of the parent folder that exists and inherit that. $target_parent = dirname( $target ); - while ( '.' != $target_parent && ! is_dir( $target_parent ) ) { + while ( '.' != $target_parent && ! is_dir( $target_parent ) && dirname( $target_parent ) !== $target_parent ) { $target_parent = dirname( $target_parent ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 5ce7e32bd5..3280d8590a 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '5.0-alpha-42800'; +$wp_version = '5.0-alpha-42801'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.