Ticket #5586: 5586.5.diff
File 5586.5.diff, 706 bytes (added by , 13 years ago) |
---|
-
wp-admin/includes/class-wp-filesystem-ftpsockets.php
179 179 return $this->ftp->pwd(); 180 180 } 181 181 182 function chdir($file){ 183 return $this->ftp->chdir($file); 184 } 185 182 186 function chgrp($file,$group,$recursive=false){ 183 187 return false; 184 188 } … … 325 329 326 330 function is_dir($path){ 327 331 $cwd = $this->cwd(); 328 if ( $this-> ftp->chdir($path) ) {329 $this-> ftp->chdir($cwd);332 if ( $this->chdir($path) ) { 333 $this->chdir($cwd); 330 334 return true; 331 335 } 332 336 return false;