- Timestamp:
- 04/05/2021 10:36:17 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-filesystem-base.php
r49936 r50657 275 275 276 276 foreach ( $folder_parts as $index => $key ) { 277 if ( $index == $last_index ) {277 if ( $index === $last_index ) { 278 278 continue; // We want this to be caught by the next code block. 279 279 } … … 344 344 $perms = intval( $this->getchmod( $file ), 8 ); 345 345 346 if ( ( $perms & 0xC000 ) == 0xC000 ) { // Socket.346 if ( ( $perms & 0xC000 ) === 0xC000 ) { // Socket. 347 347 $info = 's'; 348 } elseif ( ( $perms & 0xA000 ) == 0xA000 ) { // Symbolic Link.348 } elseif ( ( $perms & 0xA000 ) === 0xA000 ) { // Symbolic Link. 349 349 $info = 'l'; 350 } elseif ( ( $perms & 0x8000 ) == 0x8000 ) { // Regular.350 } elseif ( ( $perms & 0x8000 ) === 0x8000 ) { // Regular. 351 351 $info = '-'; 352 } elseif ( ( $perms & 0x6000 ) == 0x6000 ) { // Block special.352 } elseif ( ( $perms & 0x6000 ) === 0x6000 ) { // Block special. 353 353 $info = 'b'; 354 } elseif ( ( $perms & 0x4000 ) == 0x4000 ) { // Directory.354 } elseif ( ( $perms & 0x4000 ) === 0x4000 ) { // Directory. 355 355 $info = 'd'; 356 } elseif ( ( $perms & 0x2000 ) == 0x2000 ) { // Character special.356 } elseif ( ( $perms & 0x2000 ) === 0x2000 ) { // Character special. 357 357 $info = 'c'; 358 } elseif ( ( $perms & 0x1000 ) == 0x1000 ) { // FIFO pipe.358 } elseif ( ( $perms & 0x1000 ) === 0x1000 ) { // FIFO pipe. 359 359 $info = 'p'; 360 360 } else { // Unknown.
Note: See TracChangeset
for help on using the changeset viewer.