Make WordPress Core

Changeset 14120


Ignore:
Timestamp:
04/17/2010 04:00:59 AM (14 years ago)
Author:
dd32
Message:

Return false on WP_Filesystem_FTPext::dirlist() for non-existant folders. See #12232. See #12057

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-filesystem-ftpext.php

    r14016 r14120  
    339339
    340340        $pwd = @ftp_pwd($this->link);
    341         $chdir = @ftp_chdir($this->link, $path);
     341        if ( ! @ftp_chdir($this->link, $path) ) // Cant change to folder = folder doesnt exist
     342            return false;
    342343        $list = @ftp_rawlist($this->link, '-a', false);
    343344        @ftp_chdir($this->link, $pwd);
Note: See TracChangeset for help on using the changeset viewer.