Make WordPress Core

Changeset 26926


Ignore:
Timestamp:
01/08/2014 11:12:37 PM (11 years ago)
Author:
dd32
Message:

Uploads: Fix the Order of Operations for wp_mkdir_p() which caused this branch to never be hit. Props fboender. Fixes #26781 for trunk. See #25822

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/functions.php

    r26851 r26926  
    13791379
    13801380        // If a umask is set that modifies $dir_perms, we'll have to re-set the $dir_perms correctly with chmod()
    1381         if ( $dir_perms != $dir_perms & ~umask() ) {
     1381        if ( $dir_perms != ( $dir_perms & ~umask() ) ) {
    13821382            $folder_parts = explode( '/', substr( $target, strlen( $target_parent ) + 1 ) );
    13831383            for ( $i = 1; $i <= count( $folder_parts ); $i++ ) {
Note: See TracChangeset for help on using the changeset viewer.