- Timestamp:
- 01/29/2020 12:43:23 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-filesystem-ftpsockets.php
r46679 r47122 151 151 reset_mbstring_encoding(); 152 152 153 return ''; // Blank document , File does exist, It's just blank.153 return ''; // Blank document. File does exist, it's just blank. 154 154 } 155 155 156 156 reset_mbstring_encoding(); 157 157 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. 159 159 $contents = ''; 160 160 … … 199 199 } 200 200 201 // The FTP class uses string functions internally during file download/upload 201 // The FTP class uses string functions internally during file download/upload. 202 202 mbstring_binary_safe_encoding(); 203 203 … … 212 212 } 213 213 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. 215 215 216 216 $ret = $this->ftp->fput( $file, $temphandle ); … … 284 284 } 285 285 286 // chmod the file or directory 286 // chmod the file or directory. 287 287 return $this->ftp->chmod( $file, $mode ); 288 288 } … … 409 409 } 410 410 411 return ! empty( $list ); // empty list = no file, so invert.411 return ! empty( $list ); // Empty list = no file, so invert. 412 412 // Return $this->ftp->is_exists($file); has issues with ABOR+426 responses on the ncFTPd server. 413 413 } … … 636 636 } 637 637 638 // Replace symlinks formatted as "source -> target" with just the source name 638 // Replace symlinks formatted as "source -> target" with just the source name. 639 639 if ( $struc['islink'] ) { 640 640 $struc['name'] = preg_replace( '/(\s*->\s*.*)$/', '', $struc['name'] ); 641 641 } 642 642 643 // Add the Octal representation of the file permissions643 // Add the octal representation of the file permissions. 644 644 $struc['permsn'] = $this->getnumchmodfromh( $struc['perms'] ); 645 645
Note: See TracChangeset
for help on using the changeset viewer.