Make WordPress Core

Changeset 11082


Ignore:
Timestamp:
04/24/2009 05:12:21 PM (16 years ago)
Author:
ryan
Message:

Check if not exists and not is_dir before bailing. Props st3ff3n. fixes #9274

File:
1 edited

Legend:

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

    r11005 r11082  
    147147        if( ! $mode )
    148148            return false;
    149         if ( ! $this->exists($file) )
     149        if ( ! $this->exists($file) && ! $this->is_dir($file) )
    150150            return false;
    151151        if ( ! $recursive || ! $this->is_dir($file) ) {
Note: See TracChangeset for help on using the changeset viewer.