Make WordPress Core

Ticket #9274: wordpress_admin_plugin_ftp.patch

File wordpress_admin_plugin_ftp.patch, 472 bytes (added by st3ff3n, 16 years ago)
  • wp-admin/includes/class-wp-filesystem-ftpext.php

    old new  
    146146                        $mode = $this->permission;
    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) ) {
    152152                        if ( ! function_exists('ftp_chmod') )