Changeset 9118
- Timestamp:
- 10/10/2008 10:40:04 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-filesystem-base.php
r9117 r9118 49 49 if ( defined('FTP_BASE') && strpos($this->method, 'ftp') !== false ) 50 50 return FTP_BASE; 51 return $this->find_folder(ABSPATH); 51 $folder = $this->find_folder(ABSPATH); 52 //Perhaps the FTP folder is rooted at the WordPress install, Check for wp-includes folder in root, Could have some false positives, but rare. 53 if ( ! $folder && $this->is_dir('/wp-includes') ) 54 $folder = '/'; 55 return $folder; 52 56 } 53 57 /**
Note: See TracChangeset
for help on using the changeset viewer.