Support » Fixing WordPress » 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

    (@t-p)

    There is a note above that which define it as:

    // Set the permission constants if not already set.

    Thread Starter nabtron

    (@nabtron)

    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 2 years, 9 months ago by nabtron.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Confusing code in WordPress file.php’ is closed to new replies.