Make WordPress Core

Ticket #15575: class-wp-filesystem-ftpext.diff

File class-wp-filesystem-ftpext.diff, 490 bytes (added by lordandrei, 14 years ago)

Suggested patch

  • class-wp-filesystem-ftpext.php

     
    247247                return false;
    248248        }
    249249        function mkdir($path, $chmod = false, $chown = false, $chgrp = false) {
     250                if ( substr($path,-1,1) == '/' ) {
     251                        $path = substr($path,0,-1);
     252                }
    250253                if ( !@ftp_mkdir($this->link, $path) )
    251254                        return false;
    252255                $this->chmod($path, $chmod);