Make WordPress Core

Ticket #46840: 46840.1.diff

File 46840.1.diff, 1.6 KB (added by juiiee8487, 6 years ago)

Updated patch to fix all occurrences of "cant" to "can't".

  • 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..545bacb3c2 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
  • 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 );