Make WordPress Core

Changeset 56825


Ignore:
Timestamp:
10/11/2023 07:03:04 AM (3 years ago)
Author:
costdev
Message:

Docs: Use US spelling and correct a typing mistake.

This changes two inline comments and a docblock so that they use US spelling as advised by the Core Handbook's Best Practices. A typing mistake is also corrected.

Reference:

Follow-up to [18632], [38120], [44954].

Props kebbet, mukesh27.
See #58833.

Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-filesystem-base.php

    r56548 r56825  
    217217                        }
    218218                } elseif ( 'direct' === $this->method ) {
    219                         $folder = str_replace( '\\', '/', $folder ); // Windows path sanitisation.
     219                        $folder = str_replace( '\\', '/', $folder ); // Windows path sanitization.
    220220
    221221                        return trailingslashit( $folder );
    … …  
    223223
    224224                $folder = preg_replace( '|^([a-z]{1}):|i', '', $folder ); // Strip out Windows drive letter if it's there.
    225                 $folder = str_replace( '\\', '/', $folder ); // Windows path sanitisation.
     225                $folder = str_replace( '\\', '/', $folder ); // Windows path sanitization.
    226226
    227227                if ( isset( $this->cache[ $folder ] ) ) {
  • trunk/src/wp-admin/includes/file.php

    r56752 r56825  
    12671267        }
    12681268
    1269         // Perform signature valiation if supported.
     1269        // Perform signature validation if supported.
    12701270        if ( $signature_verification ) {
    12711271                $signature = wp_remote_retrieve_header( $response, 'X-Content-Signature' );
  • trunk/src/wp-includes/class-wp-http-requests-response.php

    r54997 r56825  
    99
    1010/**
    11  * Core wrapper object for a WpOrg\Requests\Response for standardisation.
     11 * Core wrapper object for a WpOrg\Requests\Response for standardization.
    1212 *
    1313 * @since 4.6.0
Note: See TracChangeset for help on using the changeset viewer.