diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 2421f360d..6876ff8c6 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 );