WordPress.org

Make WordPress Core

Ticket #8830: 8830.diff

File 8830.diff, 447 bytes (added by Denis-de-Bernardy, 9 years ago)
  • wp-includes/functions.php

     
    18491849function wp_mkdir_p( $target ) {
    18501850        // from php.net/mkdir user contributed notes
    18511851        $target = str_replace( '//', '/', $target );
     1852        $target = untrailingslashit($target);
    18521853        if ( file_exists( $target ) )
    18531854                return @is_dir( $target );
    18541855