From 48c145ee78737632ff226bf944e6498deef7f335 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Sun, 29 Jun 2014 22:15:10 +0000 Subject: [PATCH] `WP_Filesystem_Base->abspath()` should use the `WPINC` constant Props wojtek.szkutnik See #14157. git-svn-id: https://develop.svn.wordpress.org/trunk@28904 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-wp-filesystem-base.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/includes/class-wp-filesystem-base.php b/src/wp-admin/includes/class-wp-filesystem-base.php index 8080aef1a7..1ea44eb786 100644 --- a/src/wp-admin/includes/class-wp-filesystem-base.php +++ b/src/wp-admin/includes/class-wp-filesystem-base.php @@ -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; }