Make WordPress Core


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.

File:
1 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 ] ) ) {
Note: See TracChangeset for help on using the changeset viewer.