Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:43:23 AM (4 years ago)
Author:
SergeyBiryukov
Message:

Docs: Improve inline comments per the documentation standards.

Includes minor code layout fixes for better readability.

See #48303.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-filesystem-ftpsockets.php

    r46679 r47122  
    151151            reset_mbstring_encoding();
    152152
    153             return ''; // Blank document, File does exist, It's just blank.
     153            return ''; // Blank document. File does exist, it's just blank.
    154154        }
    155155
    156156        reset_mbstring_encoding();
    157157
    158         fseek( $temphandle, 0 ); // Skip back to the start of the file being written to
     158        fseek( $temphandle, 0 ); // Skip back to the start of the file being written to.
    159159        $contents = '';
    160160
     
    199199        }
    200200
    201         // The FTP class uses string functions internally during file download/upload
     201        // The FTP class uses string functions internally during file download/upload.
    202202        mbstring_binary_safe_encoding();
    203203
     
    212212        }
    213213
    214         fseek( $temphandle, 0 ); // Skip back to the start of the file being written to
     214        fseek( $temphandle, 0 ); // Skip back to the start of the file being written to.
    215215
    216216        $ret = $this->ftp->fput( $file, $temphandle );
     
    284284        }
    285285
    286         // chmod the file or directory
     286        // chmod the file or directory.
    287287        return $this->ftp->chmod( $file, $mode );
    288288    }
     
    409409        }
    410410
    411         return ! empty( $list ); //empty list = no file, so invert.
     411        return ! empty( $list ); // Empty list = no file, so invert.
    412412        // Return $this->ftp->is_exists($file); has issues with ABOR+426 responses on the ncFTPd server.
    413413    }
     
    636636            }
    637637
    638             // Replace symlinks formatted as "source -> target" with just the source name
     638            // Replace symlinks formatted as "source -> target" with just the source name.
    639639            if ( $struc['islink'] ) {
    640640                $struc['name'] = preg_replace( '/(\s*->\s*.*)$/', '', $struc['name'] );
    641641            }
    642642
    643             // Add the Octal representation of the file permissions
     643            // Add the octal representation of the file permissions.
    644644            $struc['permsn'] = $this->getnumchmodfromh( $struc['perms'] );
    645645
Note: See TracChangeset for help on using the changeset viewer.