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:
ryan 2008-03-20 17:22:43 +00:00
parent 3b9c0f73d5
commit 7b9d864878
2 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@ class WP_Filesystem_Direct{
$this->permission = umask();
}
function connect(){
return;
return true;
}
function setDefaultPermissions($perm){
$this->permission = $perm;
@ -17,7 +17,7 @@ class WP_Filesystem_Direct{
return str_replace('\\','/',ABSPATH);
}
function get_base_dir($base = '.', $echo = false){
return find_base_dir($base, $echo);
return $this->find_base_dir($base, $echo);
}
function get_contents($file){
return @file_get_contents($file);

View File

@ -10,7 +10,7 @@ function request_filesystem_credentials($form_post, $type = '', $error = false)
$type = get_filesystem_method();
if ( 'direct' == $type )
return array();
return true;
if( ! $credentials = get_option('ftp_credentials') )
$credentials = array();