Cleanup slashing in wp_mkdir_p

git-svn-id: https://develop.svn.wordpress.org/trunk@7455 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-03-21 18:27:56 +00:00
parent 004b469e34
commit 6fa4ffe6f1

View File

@ -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 );