Make WordPress Core

Ticket #46840: 46840.diff

File 46840.diff, 2.0 KB (added by juiiee8487, 6 years ago)

Fixed typos for other.

  • src/wp-admin/includes/class-wp-filesystem-base.php

    diff --git a/src/wp-admin/includes/class-wp-filesystem-base.php b/src/wp-admin/includes/class-wp-filesystem-base.php
    index c518408ec9..e46a4c1370 100644
    a b class WP_Filesystem_Base { 
    267267                        /*
    268268                         * Working from /home/ to /user/ to /wordpress/ see if that file exists within
    269269                         * the current folder, If it's found, change into it and follow through looking
    270                          * for it. If it cant find WordPress down that route, it'll continue onto the next
     270                         * for it. If it can't find WordPress down that route, it'll continue onto the next
    271271                         * folder level, and see if that matches, and so on. If it reaches the end, and still
    272                          * cant find it, it'll return false for the entire function.
     272                         * can't find it, it'll return false for the entire function.
    273273                         */
    274274                        if ( isset( $files[ $key ] ) ) {
    275275
    class WP_Filesystem_Base { 
    437437         *
    438438         * @param string $file      Path to the file.
    439439         * @param mixed  $owner     A user name or number.
    440          * @param bool   $recursive Optional. If set True changes file owner recursivly. Defaults to False.
     440         * @param bool   $recursive Optional. If set True changes file owner recursively. Defaults to False.
    441441         * @return bool Returns true on success or false on failure.
    442442         */
    443443        public function chown( $file, $owner, $recursive = false ) {
  • src/wp-admin/includes/class-wp-filesystem-ftpext.php

    diff --git a/src/wp-admin/includes/class-wp-filesystem-ftpext.php b/src/wp-admin/includes/class-wp-filesystem-ftpext.php
    index 36648e1844..8b50d59399 100644
    a b class WP_Filesystem_FTPext extends WP_Filesystem_Base { 
    537537                }
    538538
    539539                $pwd = @ftp_pwd( $this->link );
    540                 if ( ! @ftp_chdir( $this->link, $path ) ) { // Cant change to folder = folder doesn't exist
     540                if ( ! @ftp_chdir( $this->link, $path ) ) { // Can't change to folder = folder doesn't exist
    541541                        return false;
    542542                }
    543543                $list = @ftp_rawlist( $this->link, '-a', false );