mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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:
@@ -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 = '/';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user