Make WordPress Core

Changeset 52640


Ignore:
Timestamp:
01/25/2022 01:54:01 PM (2 years ago)
Author:
SergeyBiryukov
Message:

Docs: Update spelling for inline comments in a few files.

Per the spelling and word choice documentation guidelines, American (US) spelling should be preferred.

Props mohadeseghasemi, subrataemfluence, rehanali, SergeyBiryukov.
Fixes #46837.

Location:
trunk/src
Files:
10 edited

Legend:

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

    r52332 r52640  
    2727 * Check phpinfo() streams to confirm that: ssh2.shell, ssh2.exec, ssh2.tunnel, ssh2.scp, ssh2.sftp  exist.
    2828 *
    29  * Note: As of WordPress 2.8, this utilises the PHP5+ function `stream_get_contents()`.
     29 * Note: As of WordPress 2.8, this utilizes the PHP5+ function `stream_get_contents()`.
    3030 *
    3131 * @since 2.7.0
  • trunk/src/wp-admin/includes/file.php

    r52610 r52640  
    13961396        // Allow for an old version of Sodium_Compat being loaded before the bundled WordPress one.
    13971397        if ( method_exists( 'ParagonIE_Sodium_Compat', 'runtime_speed_test' ) ) {
    1398             // Run `ParagonIE_Sodium_Compat::runtime_speed_test()` in optimized integer mode, as that's what WordPress utilises during signing verifications.
     1398            /*
     1399             * Run `ParagonIE_Sodium_Compat::runtime_speed_test()` in optimized integer mode,
     1400             * as that's what WordPress utilizes during signing verifications.
     1401             */
    13991402            // phpcs:disable WordPress.NamingConventions.ValidVariableName
    14001403            $old_fastMult                      = ParagonIE_Sodium_Compat::$fastMult;
  • trunk/src/wp-admin/includes/update-core.php

    r52637 r52640  
    984984    /*
    985985     * Import $wp_version, $required_php_version, and $required_mysql_version from the new version.
    986      * DO NOT globalise any variables imported from `version-current.php` in this function.
     986     * DO NOT globalize any variables imported from `version-current.php` in this function.
    987987     *
    988988     * BC Note: $wp_filesystem->wp_content_dir() returned unslashed pre-2.8.
  • trunk/src/wp-includes/class-wp-image-editor-imagick.php

    r51790 r52640  
    590590            $this->image->rotateImage( new ImagickPixel( 'none' ), 360 - $angle );
    591591
    592             // Normalise EXIF orientation data so that display is consistent across devices.
     592            // Normalize EXIF orientation data so that display is consistent across devices.
    593593            if ( is_callable( array( $this->image, 'setImageOrientation' ) ) && defined( 'Imagick::ORIENTATION_TOPLEFT' ) ) {
    594594                $this->image->setImageOrientation( Imagick::ORIENTATION_TOPLEFT );
     
    628628            }
    629629
    630             // Normalise EXIF orientation data so that display is consistent across devices.
     630            // Normalize EXIF orientation data so that display is consistent across devices.
    631631            if ( is_callable( array( $this->image, 'setImageOrientation' ) ) && defined( 'Imagick::ORIENTATION_TOPLEFT' ) ) {
    632632                $this->image->setImageOrientation( Imagick::ORIENTATION_TOPLEFT );
  • trunk/src/wp-includes/class-wp-rewrite.php

    r51518 r52640  
    11741174                    // Not matching a permalink so this is a lot simpler.
    11751175                } else {
    1176                     // Close the match and finalise the query.
     1176                    // Close the match and finalize the query.
    11771177                    $match .= '?$';
    11781178                    $query  = $index . '?' . $query;
  • trunk/src/wp-includes/formatting.php

    r52457 r52640  
    46964696
    46974697/**
    4698  * Sanitises various option values based on the nature of the option.
     4698 * Sanitizes various option values based on the nature of the option.
    46994699 *
    47004700 * This is basically a switch statement which will pass $value through a number
  • trunk/src/wp-includes/functions.php

    r52628 r52640  
    21412141    }
    21422142
    2143     // Standardise all paths to use '/'.
     2143    // Standardize all paths to use '/'.
    21442144    $path = str_replace( '\\', '/', $path );
    21452145
  • trunk/src/wp-includes/pomo/po.php

    r51919 r52640  
    172172            }
    173173
    174             // Standardise the line endings on imported content, technically PO files shouldn't contain \r.
     174            // Standardize the line endings on imported content, technically PO files shouldn't contain \r.
    175175            $unpoified = str_replace( array( "\r\n", "\r" ), "\n", $unpoified );
    176176
  • trunk/src/wp-includes/rest-api/class-wp-rest-response.php

    r52578 r52640  
    279279         * into `example:term`.
    280280         *
    281          * Well-behaved clients should expand and normalise these back to their
     281         * Well-behaved clients should expand and normalize these back to their
    282282         * full URI relation, however some naive clients may not resolve these
    283283         * correctly, so adding new CURIEs may break backward compatibility.
  • trunk/src/wp-includes/rest-api/class-wp-rest-server.php

    r52204 r52640  
    850850        $endpoints = apply_filters( 'rest_endpoints', $endpoints );
    851851
    852         // Normalise the endpoints.
     852        // Normalize the endpoints.
    853853        $defaults = array(
    854854            'methods'       => '',
Note: See TracChangeset for help on using the changeset viewer.