Make WordPress Core

Ticket #13659: wp_mkdir_p_p1.patch

File wp_mkdir_p_p1.patch, 538 bytes (added by cgrenier, 15 years ago)

Don't use chmod

  • wp-includes/functions.php

     
    20292029
    20302030        // Attempting to create the directory may clutter up our display.
    20312031        if ( @mkdir( $target ) ) {
    2032                 $stat = @stat( dirname( $target ) );
    2033                 $dir_perms = $stat['mode'] & 0007777;  // Get the permission bits.
    2034                 @chmod( $target, $dir_perms );
    20352032                return true;
    20362033        } elseif ( is_dir( dirname( $target ) ) ) {
    20372034                        return false;