diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php
index 3634190663..fbd6614581 100644
|
a
|
b
|
function wp_mkdir_p( $target ) { |
| 2097 | 2097 | return true; |
| 2098 | 2098 | } |
| 2099 | 2099 | |
| | 2100 | /* |
| | 2101 | * If we get here, mkdir() failed. |
| | 2102 | * |
| | 2103 | * Maybe another process was trying to create the directory at the same time |
| | 2104 | * (and succeeded)? |
| | 2105 | * |
| | 2106 | * Check if the target exists (again). |
| | 2107 | */ |
| | 2108 | if ( file_exists( $target ) ) { |
| | 2109 | return @is_dir( $target ); |
| | 2110 | } |
| | 2111 | |
| 2100 | 2112 | return false; |
| 2101 | 2113 | } |
| 2102 | 2114 | |