mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-22 14:35:07 +00:00
wpfs direct fixes from DD32. see #5586
git-svn-id: http://svn.automattic.com/wordpress/trunk@7415 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3b9c0f73d5
commit
7b9d864878
@ -8,7 +8,7 @@ class WP_Filesystem_Direct{
|
|||||||
$this->permission = umask();
|
$this->permission = umask();
|
||||||
}
|
}
|
||||||
function connect(){
|
function connect(){
|
||||||
return;
|
return true;
|
||||||
}
|
}
|
||||||
function setDefaultPermissions($perm){
|
function setDefaultPermissions($perm){
|
||||||
$this->permission = $perm;
|
$this->permission = $perm;
|
||||||
@ -17,7 +17,7 @@ class WP_Filesystem_Direct{
|
|||||||
return str_replace('\\','/',ABSPATH);
|
return str_replace('\\','/',ABSPATH);
|
||||||
}
|
}
|
||||||
function get_base_dir($base = '.', $echo = false){
|
function get_base_dir($base = '.', $echo = false){
|
||||||
return find_base_dir($base, $echo);
|
return $this->find_base_dir($base, $echo);
|
||||||
}
|
}
|
||||||
function get_contents($file){
|
function get_contents($file){
|
||||||
return @file_get_contents($file);
|
return @file_get_contents($file);
|
||||||
|
@ -10,7 +10,7 @@ function request_filesystem_credentials($form_post, $type = '', $error = false)
|
|||||||
$type = get_filesystem_method();
|
$type = get_filesystem_method();
|
||||||
|
|
||||||
if ( 'direct' == $type )
|
if ( 'direct' == $type )
|
||||||
return array();
|
return true;
|
||||||
|
|
||||||
if( ! $credentials = get_option('ftp_credentials') )
|
if( ! $credentials = get_option('ftp_credentials') )
|
||||||
$credentials = array();
|
$credentials = array();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user