`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:
Scott Taylor 2014-06-29 22:16:15 +00:00
parent c8852cc909
commit 3d0a869a21
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}