From 4f6c6647f346e99baa3bb744739a5abc9d3093e0 Mon Sep 17 00:00:00 2001 From: Ryan Boren 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: https://develop.svn.wordpress.org/trunk@14197 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 7889338163..bcb1adee87 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 = '/';