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
This commit is contained in:
parent
960696ad2a
commit
9a92811b38
|
@ -2019,7 +2019,7 @@ function wp_mkdir_p( $target ) {
|
||||||
$target = str_replace( '//', '/', $target );
|
$target = str_replace( '//', '/', $target );
|
||||||
|
|
||||||
// safe mode fails with a trailing slash under certain PHP versions.
|
// 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) )
|
if ( empty($target) )
|
||||||
$target = '/';
|
$target = '/';
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue