mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-30 23:30:05 +00:00
ftpsockets fix from DD32. see #5586
git-svn-id: https://develop.svn.wordpress.org/trunk@7171 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -179,6 +179,10 @@ class WP_Filesystem_ftpsockets{
|
||||
return $this->ftp->pwd();
|
||||
}
|
||||
|
||||
function chdir($file){
|
||||
return $this->ftp->chdir($file);
|
||||
}
|
||||
|
||||
function chgrp($file,$group,$recursive=false){
|
||||
return false;
|
||||
}
|
||||
@@ -325,8 +329,8 @@ class WP_Filesystem_ftpsockets{
|
||||
|
||||
function is_dir($path){
|
||||
$cwd = $this->cwd();
|
||||
if ( $this->ftp->chdir($path) ) {
|
||||
$this->ftp->chdir($cwd);
|
||||
if ( $this->chdir($path) ) {
|
||||
$this->chdir($cwd);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user