Skip to content

Commit 2d707c4

Browse files
Docs: Update spelling for inline comments in a few files.
Per the [https://make.wordpress.org/core/handbook/best-practices/spelling/ spelling] and [https://make.wordpress.org/docs/style-guide/language-grammar/word-choice/ word choice] documentation guidelines, American (US) spelling should be preferred. Props mohadeseghasemi, subrataemfluence, rehanali, SergeyBiryukov. Fixes #46837. git-svn-id: https://develop.svn.wordpress.org/trunk@52640 602fd350-edb4-49c9-b593-d223f7449a82
1 parent f745cc5 commit 2d707c4

10 files changed

Lines changed: 14 additions & 11 deletions

src/wp-admin/includes/class-wp-filesystem-ssh2.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* Restart Apache!
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
3232
*

src/wp-admin/includes/file.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1395,7 +1395,10 @@ function verify_file_signature( $filename, $signatures, $filename_for_errors = f
13951395

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;
14011404
ParagonIE_Sodium_Compat::$fastMult = true;

src/wp-admin/includes/update-core.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -983,7 +983,7 @@ function update_core( $from, $to ) {
983983

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.
989989
*/

src/wp-includes/class-wp-image-editor-imagick.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ public function rotate( $angle ) {
589589
try {
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 );
595595
}
@@ -627,7 +627,7 @@ public function flip( $horz, $vert ) {
627627
$this->image->flopImage();
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 );
633633
}

src/wp-includes/class-wp-rewrite.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1173,7 +1173,7 @@ public function generate_rewrite_rules( $permalink_structure, $ep_mask = EP_NONE
11731173

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;
11791179
}

src/wp-includes/formatting.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4695,7 +4695,7 @@ function wp_make_link_relative( $link ) {
46954695
}
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
47014701
* of functions depending on the $option.

src/wp-includes/functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2140,7 +2140,7 @@ function wp_normalize_path( $path ) {
21402140
$wrapper .= '://';
21412141
}
21422142

2143-
// Standardise all paths to use '/'.
2143+
// Standardize all paths to use '/'.
21442144
$path = str_replace( '\\', '/', $path );
21452145

21462146
// Replace multiple slashes down to a singular, allowing for network shares having two slashes.

src/wp-includes/pomo/po.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ public static function unpoify( $string ) {
171171
}
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

177177
return $unpoified;

src/wp-includes/rest-api/class-wp-rest-response.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ public function get_curies() {
278278
* `http://w.org/{rel}` would transform a `http://w.org/term` relation
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.
284284
*

src/wp-includes/rest-api/class-wp-rest-server.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,7 @@ public function get_routes( $namespace = '' ) {
849849
*/
850850
$endpoints = apply_filters( 'rest_endpoints', $endpoints );
851851

852-
// Normalise the endpoints.
852+
// Normalize the endpoints.
853853
$defaults = array(
854854
'methods' => '',
855855
'accept_json' => false,

0 commit comments

Comments
 (0)