`WP_Filesystem_Base->abspath()` should use the `WPINC` constant
Props wojtek.szkutnik See #14157. Built from https://develop.svn.wordpress.org/trunk@28904 git-svn-id: http://core.svn.wordpress.org/trunk@28703 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c8852cc909
commit
3d0a869a21
|
@ -95,7 +95,7 @@ class WP_Filesystem_Base {
|
|||
public function abspath() {
|
||||
$folder = $this->find_folder(ABSPATH);
|
||||
// Perhaps the FTP folder is rooted at the WordPress install, Check for wp-includes folder in root, Could have some false positives, but rare.
|
||||
if ( ! $folder && $this->is_dir('/wp-includes') )
|
||||
if ( ! $folder && $this->is_dir( '/' . WPINC ) )
|
||||
$folder = '/';
|
||||
return $folder;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue