- Timestamp:
- 09/09/2013 02:54:50 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-filesystem-ftpsockets.php
r25304 r25305 24 24 $this->errors = new WP_Error(); 25 25 26 // Check if possible to use ftp functions.26 // Check if possible to use ftp functions. 27 27 if ( ! @include_once ABSPATH . 'wp-admin/includes/class-ftp.php' ) 28 28 return false; 29 29 $this->ftp = new ftp(); 30 30 31 //Set defaults:32 31 if ( empty($opt['port']) ) 33 32 $this->options['port'] = 21; … … 94 93 fclose($temphandle); 95 94 unlink($temp); 96 return ''; // Blank document, File does exist, It's just blank.97 } 98 99 fseek( $temphandle, 0); //Skip back to the start of the file being written to95 return ''; // Blank document, File does exist, It's just blank. 96 } 97 98 fseek( $temphandle, 0 ); // Skip back to the start of the file being written to 100 99 $contents = ''; 101 100 … … 243 242 244 243 function is_readable($file) { 245 //Get dir list, Check if the file is writable by the current user??246 244 return true; 247 245 } 248 246 249 247 function is_writable($file) { 250 //Get dir list, Check if the file is writable by the current user??251 248 return true; 252 249 }
Note: See TracChangeset
for help on using the changeset viewer.