From 4365b9da3379484a258b895295e5651aa36ee66f Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 6 Mar 2008 18:14:58 +0000 Subject: [PATCH] ftpsockets fix from DD32. see #5586 git-svn-id: https://develop.svn.wordpress.org/trunk@7171 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/class-wp-filesystem-ftpsockets.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/class-wp-filesystem-ftpsockets.php b/wp-admin/includes/class-wp-filesystem-ftpsockets.php index 8191cc0f94..1b4c121048 100644 --- a/wp-admin/includes/class-wp-filesystem-ftpsockets.php +++ b/wp-admin/includes/class-wp-filesystem-ftpsockets.php @@ -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;