mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Allow wp-content to exist outside of webroot. Props sambauers. see #6938
git-svn-id: https://develop.svn.wordpress.org/trunk@7999 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -13,10 +13,12 @@ class WP_Filesystem_Direct{
|
||||
function setDefaultPermissions($perm){
|
||||
$this->permission = $perm;
|
||||
}
|
||||
function find_base_dir($base = '.', $echo = false){
|
||||
return str_replace('\\','/',ABSPATH);
|
||||
function find_base_dir($path = false, $base = '.', $echo = false){
|
||||
if (!$path)
|
||||
$path = ABSPATH;
|
||||
return str_replace('\\','/',$path);
|
||||
}
|
||||
function get_base_dir($base = '.', $echo = false){
|
||||
function get_base_dir($path = false, $base = '.', $echo = false){
|
||||
return $this->find_base_dir($base, $echo);
|
||||
}
|
||||
function get_contents($file){
|
||||
|
||||
Reference in New Issue
Block a user