mirror of
git://develop.git.wordpress.org/
synced 2025-01-29 18:48:18 +01:00
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:
parent
004b469e34
commit
6fa4ffe6f1
@ -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 );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user