Use rtrim() instead of untrailingslashit to avoid formatting.php dependency. Relying on formatting.php breaks SHORTINIT.

git-svn-id: https://develop.svn.wordpress.org/trunk@14197 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2010-04-23 16:10:48 +00:00
parent de3a5eca3b
commit 4f6c6647f3
1 changed files with 1 additions and 1 deletions

View File

@ -2019,7 +2019,7 @@ function wp_mkdir_p( $target ) {
$target = str_replace( '//', '/', $target );
// safe mode fails with a trailing slash under certain PHP versions.
$target = untrailingslashit($target);
$target = rtrim($target, '/'); // Use rtrim() instead of untrailingslashit to avoid formatting.php dependency.
if ( empty($target) )
$target = '/';