Cleanup slashing in wp_mkdir_p

git-svn-id: http://svn.automattic.com/wordpress/trunk@7455 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-03-21 18:27:56 +00:00
parent 3ea6a438f9
commit e6e3b1aa35
1 changed files with 1 additions and 0 deletions

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