Make WordPress Core


Ignore:
Timestamp:
05/27/2008 05:55:24 PM (14 years ago)
Author:
ryan
Message:

Allow wp-content to exist outside of webroot. Props sambauers. see #6938

File:
1 edited

Legend:

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

    r7785 r7999  
    1414        $this->permission = $perm;
    1515    }
    16     function find_base_dir($base = '.', $echo = false){
    17         return str_replace('\\','/',ABSPATH);
    18     }
    19     function get_base_dir($base = '.', $echo = false){
     16    function find_base_dir($path = false, $base = '.', $echo = false){
     17        if (!$path)
     18            $path = ABSPATH;
     19        return str_replace('\\','/',$path);
     20    }
     21    function get_base_dir($path = false, $base = '.', $echo = false){
    2022        return $this->find_base_dir($base, $echo);
    2123    }
Note: See TracChangeset for help on using the changeset viewer.