mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-09 07:00:01 +00:00
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 );
|
||||
|
||||
// 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…
x
Reference in New Issue
Block a user