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
This commit is contained in:
Sergey Biryukov
2022-01-25 13:54:01 +00:00
parent f745cc551b
commit 2d707c4512
10 changed files with 14 additions and 11 deletions
@@ -589,7 +589,7 @@ class WP_Image_Editor_Imagick extends WP_Image_Editor {
try {
$this->image->rotateImage( new ImagickPixel( 'none' ), 360 - $angle );
// Normalise EXIF orientation data so that display is consistent across devices.
// Normalize EXIF orientation data so that display is consistent across devices.
if ( is_callable( array( $this->image, 'setImageOrientation' ) ) && defined( 'Imagick::ORIENTATION_TOPLEFT' ) ) {
$this->image->setImageOrientation( Imagick::ORIENTATION_TOPLEFT );
}
@@ -627,7 +627,7 @@ class WP_Image_Editor_Imagick extends WP_Image_Editor {
$this->image->flopImage();
}
// Normalise EXIF orientation data so that display is consistent across devices.
// Normalize EXIF orientation data so that display is consistent across devices.
if ( is_callable( array( $this->image, 'setImageOrientation' ) ) && defined( 'Imagick::ORIENTATION_TOPLEFT' ) ) {
$this->image->setImageOrientation( Imagick::ORIENTATION_TOPLEFT );
}
+1 -1
View File
@@ -1173,7 +1173,7 @@ class WP_Rewrite {
// Not matching a permalink so this is a lot simpler.
} else {
// Close the match and finalise the query.
// Close the match and finalize the query.
$match .= '?$';
$query = $index . '?' . $query;
}
+1 -1
View File
@@ -4695,7 +4695,7 @@ function wp_make_link_relative( $link ) {
}
/**
* Sanitises various option values based on the nature of the option.
* Sanitizes various option values based on the nature of the option.
*
* This is basically a switch statement which will pass $value through a number
* of functions depending on the $option.
+1 -1
View File
@@ -2140,7 +2140,7 @@ function wp_normalize_path( $path ) {
$wrapper .= '://';
}
// Standardise all paths to use '/'.
// Standardize all paths to use '/'.
$path = str_replace( '\\', '/', $path );
// Replace multiple slashes down to a singular, allowing for network shares having two slashes.
+1 -1
View File
@@ -171,7 +171,7 @@ if ( ! class_exists( 'PO', false ) ) :
}
}
// Standardise the line endings on imported content, technically PO files shouldn't contain \r.
// Standardize the line endings on imported content, technically PO files shouldn't contain \r.
$unpoified = str_replace( array( "\r\n", "\r" ), "\n", $unpoified );
return $unpoified;
@@ -278,7 +278,7 @@ class WP_REST_Response extends WP_HTTP_Response {
* `http://w.org/{rel}` would transform a `http://w.org/term` relation
* into `example:term`.
*
* Well-behaved clients should expand and normalise these back to their
* Well-behaved clients should expand and normalize these back to their
* full URI relation, however some naive clients may not resolve these
* correctly, so adding new CURIEs may break backward compatibility.
*
@@ -849,7 +849,7 @@ class WP_REST_Server {
*/
$endpoints = apply_filters( 'rest_endpoints', $endpoints );
// Normalise the endpoints.
// Normalize the endpoints.
$defaults = array(
'methods' => '',
'accept_json' => false,