From 773fd1aeb895e16d75f83631f449a7ba0f00c11d Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Sat, 29 Nov 2008 23:24:20 +0000 Subject: [PATCH] Break out if we ever make it too far from home. Fixes #8428 props st_falcon. git-svn-id: https://develop.svn.wordpress.org/trunk@9970 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index b2712fe43c..8ef3c4ac9a 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; }