diff --git a/wp-includes/functions.php b/wp-includes/functions.php index b2712fe43..8ef3c4ac9 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -1744,9 +1744,9 @@ function wp_mkdir_p( $target ) { } // If the above failed, attempt to create the parent node, then try again. - if ( wp_mkdir_p( dirname( $target ) ) ) + if ( ( $target != '/' ) && ( wp_mkdir_p( dirname( $target ) ) ) ) return wp_mkdir_p( $target ); - + return false; }