From 5a32388a137ad8a5f92f00cfd820144ed1079eee Mon Sep 17 00:00:00 2001 From: Jb Audras Date: Tue, 10 Jan 2023 09:28:17 +0000 Subject: [PATCH] Docs: Align spelling with American English. This changeset updates the use of "-ise" suffix to American English "-ize" and replaces "behaviour" with "behavior" in various docblocks. Follow-up to [54663], [54664], [55043]. Props kebbet. See #56811, #56792. git-svn-id: https://develop.svn.wordpress.org/trunk@55044 602fd350-edb4-49c9-b593-d223f7449a82 --- src/js/_enqueues/admin/postbox.js | 4 ++-- src/js/_enqueues/lib/comment-reply.js | 2 +- src/js/_enqueues/lib/image-edit.js | 4 ++-- src/js/_enqueues/wp/api.js | 2 +- src/wp-includes/pluggable.php | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/js/_enqueues/admin/postbox.js b/src/js/_enqueues/admin/postbox.js index 4f521acd93..c80866f3a2 100644 --- a/src/js/_enqueues/admin/postbox.js +++ b/src/js/_enqueues/admin/postbox.js @@ -14,7 +14,7 @@ __ = wp.i18n.__; /** - * This object contains all function to handle the behaviour of the post boxes. The post boxes are the boxes you see + * This object contains all function to handle the behavior of the post boxes. The post boxes are the boxes you see * around the content on the edit page. * * @since 2.7.0 @@ -347,7 +347,7 @@ }, /** - * Initializes all the postboxes, mainly their sortable behaviour. + * Initializes all the postboxes, mainly their sortable behavior. * * @since 2.7.0 * diff --git a/src/js/_enqueues/lib/comment-reply.js b/src/js/_enqueues/lib/comment-reply.js index 5d20672058..59cf5a1aa0 100644 --- a/src/js/_enqueues/lib/comment-reply.js +++ b/src/js/_enqueues/lib/comment-reply.js @@ -59,7 +59,7 @@ window.addComment = ( function( window ) { * @since 5.1.1 */ function ready() { - // Initialise the events. + // Initialize the events. init(); // Set up a MutationObserver to check for comments loaded late. diff --git a/src/js/_enqueues/lib/image-edit.js b/src/js/_enqueues/lib/image-edit.js index 18d3099f62..0d4f7b015a 100644 --- a/src/js/_enqueues/lib/image-edit.js +++ b/src/js/_enqueues/lib/image-edit.js @@ -11,7 +11,7 @@ var __ = wp.i18n.__; /** - * Contains all the methods to initialise and control the image editor. + * Contains all the methods to initialize and control the image editor. * * @namespace imageEdit */ @@ -636,7 +636,7 @@ btn.removeClass( 'button-activated' ); spin.removeClass( 'is-active' ); } ); - // Initialise the Image Editor now that everything is ready. + // Initialize the Image Editor now that everything is ready. imageEdit.init( postid ); } ); diff --git a/src/js/_enqueues/wp/api.js b/src/js/_enqueues/wp/api.js index b033a6f02b..1d0baea8cd 100644 --- a/src/js/_enqueues/wp/api.js +++ b/src/js/_enqueues/wp/api.js @@ -7,7 +7,7 @@ 'use strict'; /** - * Initialise the WP_API. + * Initialize the WP_API. */ function WP_API() { /** @namespace wp.api.models */ diff --git a/src/wp-includes/pluggable.php b/src/wp-includes/pluggable.php index 6ecd672706..8ee9724331 100644 --- a/src/wp-includes/pluggable.php +++ b/src/wp-includes/pluggable.php @@ -1238,7 +1238,7 @@ if ( ! function_exists( 'check_admin_referer' ) ) : * Ensures intent by verifying that a user was referred from another admin page with the correct security nonce. * * This function ensures the user intends to perform a given action, which helps protect against clickjacking style - * attacks. It verifies intent, not authorisation, therefore it does not verify the user's capabilities. This should + * attacks. It verifies intent, not authorization, therefore it does not verify the user's capabilities. This should * be performed with `current_user_can()` or similar. * * If the nonce value is invalid, the function will exit with an "Are You Sure?" style message.