diff --git a/src/wp-admin/includes/class-wp-filesystem-base.php b/src/wp-admin/includes/class-wp-filesystem-base.php
index c518408ec9..545bacb3c2 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 | |
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 ); |