Make WordPress Core

Ticket #15575: 15575.patch

File 15575.patch, 1002 bytes (added by SergeyBiryukov, 14 years ago)
  • wp-admin/includes/class-wp-filesystem-ftpext.php

     
    247247                return false;
    248248        }
    249249        function mkdir($path, $chmod = false, $chown = false, $chgrp = false) {
     250                $path = untrailingslashit($path);
    250251                if ( !@ftp_mkdir($this->link, $path) )
    251252                        return false;
    252253                $this->chmod($path, $chmod);
  • wp-admin/includes/class-wp-filesystem-ftpsockets.php

     
    267267        }
    268268
    269269        function mkdir($path, $chmod = false, $chown = false, $chgrp = false ) {
     270                $path = untrailingslashit($path);
    270271                if ( ! $this->ftp->mkdir($path) )
    271272                        return false;
    272273                if ( ! $chmod )