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:
parent
de3a5eca3b
commit
4f6c6647f3
|
@ -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 = '/';
|
||||
|
||||
|
|
Loading…
Reference in New Issue