Ticket #8830: 8830.diff
| File 8830.diff, 447 bytes (added by Denis-de-Bernardy, 4 years ago) |
|---|
| Line | |
|---|---|
| 1 | Index: wp-includes/functions.php |
| 2 | =================================================================== |
| 3 | --- wp-includes/functions.php (revision 11010) |
| 4 | +++ wp-includes/functions.php (working copy) |
| 5 | @@ -1849,6 +1849,7 @@ |
| 6 | function wp_mkdir_p( $target ) { |
| 7 | // from php.net/mkdir user contributed notes |
| 8 | $target = str_replace( '//', '/', $target ); |
| 9 | + $target = untrailingslashit($target); |
| 10 | if ( file_exists( $target ) ) |
| 11 | return @is_dir( $target ); |
| 12 |
