]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/functions.php
WordPress 3.8.1
[autoinstalls/wordpress.git] / wp-includes / functions.php
index 05acf4e1ece3525d8eed81a524025373e705c024..9b0335b684cf2b27b76964168cc536de20cd6929 100644 (file)
@@ -1378,7 +1378,7 @@ function wp_mkdir_p( $target ) {
        if ( @mkdir( $target, $dir_perms, true ) ) {
 
                // If a umask is set that modifies $dir_perms, we'll have to re-set the $dir_perms correctly with chmod()
-               if ( $dir_perms != $dir_perms & ~umask() ) {
+               if ( $dir_perms != ( $dir_perms & ~umask() ) ) {
                        $folder_parts = explode( '/', substr( $target, strlen( $target_parent ) + 1 ) );
                        for ( $i = 1; $i <= count( $folder_parts ); $i++ ) {
                                @chmod( $target_parent . '/' . implode( '/', array_slice( $folder_parts, 0, $i ) ), $dir_perms );