Title: Confusing code in WordPress file.php
Last modified: December 2, 2018

---

# Confusing code in WordPress file.php

 *  [nabtron](https://wordpress.org/support/users/nabtron/)
 * (@nabtron)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/confusing-code-in-wordpress-file-php/)
 * Can you please explain what this code exactly does? esp the part after &
 * wp-admin/includes/file.php
 * line: 1421
 * `define('FS_CHMOD_DIR', ( fileperms( ABSPATH ) & 0777 | 0755 ) );`
 * I need to understand this part due to some error with my code right now. Sorry
   for my immature query!
 * Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/confusing-code-in-wordpress-file-php/#post-10938114)
 * There is a note above that which define it as:
 * > // Set the permission constants if not already set.
 *  Thread Starter [nabtron](https://wordpress.org/support/users/nabtron/)
 * (@nabtron)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/confusing-code-in-wordpress-file-php/#post-10938129)
 * I was asking about explanation of how the bitwise operators are functioning here(
   signified by the part of my original question “esp the part after &”).
    -  This reply was modified 7 years, 6 months ago by [nabtron](https://wordpress.org/support/users/nabtron/).

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Confusing code in WordPress file.php’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [nabtron](https://wordpress.org/support/users/nabtron/)
 * Last activity: [7 years, 6 months ago](https://wordpress.org/support/topic/confusing-code-in-wordpress-file-php/#post-10938129)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
