Make WordPress Core


Ignore:
Timestamp:
06/29/2014 10:15:10 PM (10 years ago)
Author:
wonderboymusic
Message:

WP_Filesystem_Base->abspath() should use the WPINC constant

Props wojtek.szkutnik
See #14157.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-filesystem-base.php

    r28529 r28904  
    9696        $folder = $this->find_folder(ABSPATH);
    9797        // Perhaps the FTP folder is rooted at the WordPress install, Check for wp-includes folder in root, Could have some false positives, but rare.
    98         if ( ! $folder && $this->is_dir('/wp-includes') )
     98        if ( ! $folder && $this->is_dir( '/' . WPINC ) )
    9999            $folder = '/';
    100100        return $folder;
Note: See TracChangeset for help on using the changeset viewer.