mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00: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…
Reference in New Issue
Block a user