mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-22 23:41:38 +01:00
ftpsockets fix from DD32. see #5586
git-svn-id: http://svn.automattic.com/wordpress/trunk@7171 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
24d3ee2c98
commit
12a0f3a403
@ -179,6 +179,10 @@ class WP_Filesystem_ftpsockets{
|
|||||||
return $this->ftp->pwd();
|
return $this->ftp->pwd();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function chdir($file){
|
||||||
|
return $this->ftp->chdir($file);
|
||||||
|
}
|
||||||
|
|
||||||
function chgrp($file,$group,$recursive=false){
|
function chgrp($file,$group,$recursive=false){
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -325,8 +329,8 @@ class WP_Filesystem_ftpsockets{
|
|||||||
|
|
||||||
function is_dir($path){
|
function is_dir($path){
|
||||||
$cwd = $this->cwd();
|
$cwd = $this->cwd();
|
||||||
if ( $this->ftp->chdir($path) ) {
|
if ( $this->chdir($path) ) {
|
||||||
$this->ftp->chdir($cwd);
|
$this->chdir($cwd);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user