From f0c3ee66dad969b44f4206da8b629c9eb87458ad Mon Sep 17 00:00:00 2001 From: westi 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: http://svn.automattic.com/wordpress/trunk@9970 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 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; }