WordPress.org

Make WordPress Core

Ticket #10060: 10060.diff

File 10060.diff, 515 bytes (added by dd32, 9 years ago)
  • wp-admin/includes/class-wp-filesystem-ftpext.php

     
    201207        }
    202208
    203209        function exists($file) {
    204                 $list = @ftp_rawlist($this->link, $file, false);
     210                $list = @ftp_nlist($this->link, $file);
    205211                return !empty($list); //empty list = no file, so invert.
    206212        }
    207213        function is_file($file) {