Make WordPress Core

Ticket #46840: 46840.patch

File 46840.patch, 596 bytes (added by ebrahimzadeh, 6 years ago)
  • wp-admin/includes/class-wp-filesystem-ftpext.php

     
    537537                }
    538538
    539539                $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
    541541                        return false;
    542542                }
    543543                $list = @ftp_rawlist( $this->link, '-a', false );