- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-filesystem-ftpsockets.php
r13770 r17771 20 20 var $options = array(); 21 21 22 function WP_Filesystem_ftpsockets($opt = '') {22 function __construct($opt = '') { 23 23 $this->method = 'ftpsockets'; 24 24 $this->errors = new WP_Error(); … … 194 194 } 195 195 196 function copy($source, $destination, $overwrite = false 196 function copy($source, $destination, $overwrite = false, $mode = false) { 197 197 if ( ! $overwrite && $this->exists($destination) ) 198 198 return false; … … 202 202 return false; 203 203 204 return $this->put_contents($destination, $content );204 return $this->put_contents($destination, $content, $mode); 205 205 } 206 206 … … 209 209 } 210 210 211 function delete($file, $recursive = false 211 function delete($file, $recursive = false, $type = false) { 212 212 if ( empty($file) ) 213 213 return false; 214 if ( $this->is_file($file) )214 if ( 'f' == $type || $this->is_file($file) ) 215 215 return $this->ftp->delete($file); 216 216 if ( !$recursive )
Note: See TracChangeset
for help on using the changeset viewer.