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
This commit is contained in:
parent
72f4d14f13
commit
773fd1aeb8
|
@ -1744,7 +1744,7 @@ function wp_mkdir_p( $target ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// If the above failed, attempt to create the parent node, then try again.
|
// 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 wp_mkdir_p( $target );
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue