From 9a92811b3849830c429de52c49922de3359f1e48 Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 23 Apr 2010 16:10:48 +0000 Subject: [PATCH] Use rtrim() instead of untrailingslashit to avoid formatting.php dependency. Relying on formatting.php breaks SHORTINIT. git-svn-id: http://svn.automattic.com/wordpress/trunk@14197 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 788933816..bcb1adee8 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -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 = '/';