Ticket #13659: wp_mkdir_p_p1.patch
File wp_mkdir_p_p1.patch, 538 bytes (added by , 15 years ago) |
---|
-
wp-includes/functions.php
2029 2029 2030 2030 // Attempting to create the directory may clutter up our display. 2031 2031 if ( @mkdir( $target ) ) { 2032 $stat = @stat( dirname( $target ) );2033 $dir_perms = $stat['mode'] & 0007777; // Get the permission bits.2034 @chmod( $target, $dir_perms );2035 2032 return true; 2036 2033 } elseif ( is_dir( dirname( $target ) ) ) { 2037 2034 return false;