Changeset 17926
- Timestamp:
- 05/14/2011 09:56:59 AM (13 years ago)
- Location:
- trunk/wp-admin/includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-filesystem-base.php
r17579 r17926 22 22 var $verbose = false; 23 23 /** 24 * Cached list of local filepaths to map ed remote filepaths.24 * Cached list of local filepaths to mapped remote filepaths. 25 25 * 26 26 * @since 2.7 … … 216 216 } 217 217 218 //Only check this as a last resort, to prevent locating the incorrect install. All above proce eedures will fail quickly if this is the right branch to take.218 //Only check this as a last resort, to prevent locating the incorrect install. All above procedures will fail quickly if this is the right branch to take. 219 219 if (isset( $files[ $last_path ] ) ) { 220 220 if ( $this->verbose ) … … 223 223 } 224 224 if ( $loop ) 225 return false; //Prevent t ihs functionlooping again.225 return false; //Prevent this function from looping again. 226 226 //As an extra last resort, Change back to / if the folder wasnt found. This comes into effect when the CWD is /home/user/ but WP is at /var/www/.... mainly dedicated setups. 227 227 return $this->search_for_folder($folder, '/', true); -
trunk/wp-admin/includes/class-wp-filesystem-direct.php
r17771 r17926 20 20 * constructor 21 21 * 22 * @param mixed $arg i ngored argument22 * @param mixed $arg ignored argument 23 23 */ 24 24 function __construct($arg) { … … 223 223 if ( empty($file) ) //Some filesystems report this as /, which can cause non-expected recursive deletion of all files in the filesystem. 224 224 return false; 225 $file = str_replace('\\', '/', $file); //for win32, occasional problems delet eing files otherwise225 $file = str_replace('\\', '/', $file); //for win32, occasional problems deleting files otherwise 226 226 227 227 if ( 'f' == $type || $this->is_file($file) )
Note: See TracChangeset
for help on using the changeset viewer.