mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-09 07:00:01 +00:00
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:
parent
3ea6a438f9
commit
e6e3b1aa35
@ -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