mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-22 16:21:26 +01:00
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
This commit is contained in:
parent
b2ded29b9f
commit
f0c3ee66da
@ -1744,9 +1744,9 @@ 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
Block a user