Make WordPress Core

Changeset 26927


Ignore:
Timestamp:
01/08/2014 11:17:03 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 3.8.1. See #25822

File:
1 edited

Legend:

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

    r26851 r26927  
    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.