From 6fa4ffe6f1bbc8d26733b5470019a556dd5e9d3e Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Fri, 21 Mar 2008 18:27:56 +0000 Subject: [PATCH] Cleanup slashing in wp_mkdir_p git-svn-id: https://develop.svn.wordpress.org/trunk@7455 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/functions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 2421f360db..6876ff8c60 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -1029,6 +1029,7 @@ function wp_get_original_referer() { function wp_mkdir_p( $target ) { // from php.net/mkdir user contributed notes + $target = str_replace( '//', '/', $target ); if ( file_exists( $target ) ) return @is_dir( $target );