diff --git a/src/wp-admin/includes/class-wp-filesystem-base.php b/src/wp-admin/includes/class-wp-filesystem-base.php
index c518408ec9..e46a4c1370 100644
|
a
|
b
|
class WP_Filesystem_Base { |
| 267 | 267 | /* |
| 268 | 268 | * Working from /home/ to /user/ to /wordpress/ see if that file exists within |
| 269 | 269 | * the current folder, If it's found, change into it and follow through looking |
| 270 | | * for it. If it cant find WordPress down that route, it'll continue onto the next |
| | 270 | * for it. If it can't find WordPress down that route, it'll continue onto the next |
| 271 | 271 | * folder level, and see if that matches, and so on. If it reaches the end, and still |
| 272 | | * cant find it, it'll return false for the entire function. |
| | 272 | * can't find it, it'll return false for the entire function. |
| 273 | 273 | */ |
| 274 | 274 | if ( isset( $files[ $key ] ) ) { |
| 275 | 275 | |
| … |
… |
class WP_Filesystem_Base { |
| 437 | 437 | * |
| 438 | 438 | * @param string $file Path to the file. |
| 439 | 439 | * @param mixed $owner A user name or number. |
| 440 | | * @param bool $recursive Optional. If set True changes file owner recursivly. Defaults to False. |
| | 440 | * @param bool $recursive Optional. If set True changes file owner recursively. Defaults to False. |
| 441 | 441 | * @return bool Returns true on success or false on failure. |
| 442 | 442 | */ |
| 443 | 443 | public function chown( $file, $owner, $recursive = false ) { |
diff --git a/src/wp-admin/includes/class-wp-filesystem-ftpext.php b/src/wp-admin/includes/class-wp-filesystem-ftpext.php
index 36648e1844..8b50d59399 100644
|
a
|
b
|
class WP_Filesystem_FTPext extends WP_Filesystem_Base { |
| 537 | 537 | } |
| 538 | 538 | |
| 539 | 539 | $pwd = @ftp_pwd( $this->link ); |
| 540 | | if ( ! @ftp_chdir( $this->link, $path ) ) { // Cant change to folder = folder doesn't exist |
| | 540 | if ( ! @ftp_chdir( $this->link, $path ) ) { // Can't change to folder = folder doesn't exist |
| 541 | 541 | return false; |
| 542 | 542 | } |
| 543 | 543 | $list = @ftp_rawlist( $this->link, '-a', false ); |