summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
authorJb Audras <audrasjb@git.wordpress.org>2023-01-11 13:57:17 +0000
committerJb Audras <audrasjb@git.wordpress.org>2023-01-11 13:57:17 +0000
commita930d258b932b2e7d6e50f7fccc1d3d0607a5f0f (patch)
treec5a00894b063ac023b616f4ceb694860663a1098 /src
parentc45465ca9f0c2195681b4009356c5d1941745b99 (diff)
downloadwordpress-a930d258b932b2e7d6e50f7fccc1d3d0607a5f0f.tar.gz
wordpress-a930d258b932b2e7d6e50f7fccc1d3d0607a5f0f.zip
Docs: Align spelling with American English.
This changeset updates the use of "-ise" suffix to American English "-ize" in various files. Follow-up to [54663], [54664], [55043], [55044]. Props kebbet, mukesh27. See #56811, #56792. git-svn-id: https://develop.svn.wordpress.org/trunk@55051 602fd350-edb4-49c9-b593-d223f7449a82
Diffstat (limited to 'src')
-rw-r--r--src/wp-includes/formatting.php2
-rw-r--r--src/wp-includes/general-template.php16
-rw-r--r--src/wp-mail.php2
3 files changed, 10 insertions, 10 deletions
diff --git a/src/wp-includes/formatting.php b/src/wp-includes/formatting.php
index bade4e2788..d3d54c422f 100644
--- a/src/wp-includes/formatting.php
+++ b/src/wp-includes/formatting.php
@@ -4728,7 +4728,7 @@ function wp_make_link_relative( $link ) {
* @global wpdb $wpdb WordPress database abstraction object.
*
* @param string $option The name of the option.
- * @param string $value The unsanitised value.
+ * @param string $value The unsanitized value.
* @return string Sanitized value.
*/
function sanitize_option( $option, $value ) {
diff --git a/src/wp-includes/general-template.php b/src/wp-includes/general-template.php
index c2765d7b5a..40e6811443 100644
--- a/src/wp-includes/general-template.php
+++ b/src/wp-includes/general-template.php
@@ -10,7 +10,7 @@
* Loads header template.
*
* Includes the header template for a theme or if a name is specified then a
- * specialised header will be included.
+ * specialized header will be included.
*
* For the parameter, if the file is called "header-special.php" then specify
* "special".
@@ -19,7 +19,7 @@
* @since 5.5.0 A return value was added.
* @since 5.5.0 The `$args` parameter was added.
*
- * @param string $name The name of the specialised header.
+ * @param string $name The name of the specialized header.
* @param array $args Optional. Additional arguments passed to the header template.
* Default empty array.
* @return void|false Void on success, false if the template does not exist.
@@ -54,7 +54,7 @@ function get_header( $name = null, $args = array() ) {
* Loads footer template.
*
* Includes the footer template for a theme or if a name is specified then a
- * specialised footer will be included.
+ * specialized footer will be included.
*
* For the parameter, if the file is called "footer-special.php" then specify
* "special".
@@ -63,7 +63,7 @@ function get_header( $name = null, $args = array() ) {
* @since 5.5.0 A return value was added.
* @since 5.5.0 The `$args` parameter was added.
*
- * @param string $name The name of the specialised footer.
+ * @param string $name The name of the specialized footer.
* @param array $args Optional. Additional arguments passed to the footer template.
* Default empty array.
* @return void|false Void on success, false if the template does not exist.
@@ -98,7 +98,7 @@ function get_footer( $name = null, $args = array() ) {
* Loads sidebar template.
*
* Includes the sidebar template for a theme or if a name is specified then a
- * specialised sidebar will be included.
+ * specialized sidebar will be included.
*
* For the parameter, if the file is called "sidebar-special.php" then specify
* "special".
@@ -107,7 +107,7 @@ function get_footer( $name = null, $args = array() ) {
* @since 5.5.0 A return value was added.
* @since 5.5.0 The `$args` parameter was added.
*
- * @param string $name The name of the specialised sidebar.
+ * @param string $name The name of the specialized sidebar.
* @param array $args Optional. Additional arguments passed to the sidebar template.
* Default empty array.
* @return void|false Void on success, false if the template does not exist.
@@ -145,7 +145,7 @@ function get_sidebar( $name = null, $args = array() ) {
* in the theme.
*
* Includes the named template part for a theme or if a name is specified then a
- * specialised part will be included. If the theme contains no {slug}.php file
+ * specialized part will be included. If the theme contains no {slug}.php file
* then no template will be included.
*
* The template is included using require, not require_once, so you may include the
@@ -159,7 +159,7 @@ function get_sidebar( $name = null, $args = array() ) {
* @since 5.5.0 The `$args` parameter was added.
*
* @param string $slug The slug name for the generic template.
- * @param string $name The name of the specialised template.
+ * @param string $name The name of the specialized template.
* @param array $args Optional. Additional arguments passed to the template.
* Default empty array.
* @return void|false Void on success, false if the template does not exist.
diff --git a/src/wp-mail.php b/src/wp-mail.php
index b37a88b885..631645cbed 100644
--- a/src/wp-mail.php
+++ b/src/wp-mail.php
@@ -147,7 +147,7 @@ for ( $i = 1; $i <= $count; $i++ ) {
if ( preg_match( '/Date: /i', $line ) ) { // Of the form '20 Mar 2002 20:32:37 +0100'.
$ddate = str_replace( 'Date: ', '', trim( $line ) );
- // Remove parenthesised timezone string if it exists, as this confuses strtotime().
+ // Remove parenthesized timezone string if it exists, as this confuses strtotime().
$ddate = preg_replace( '!\s*\(.+\)\s*$!', '', $ddate );
$ddate_timestamp = strtotime( $ddate );
$post_date = gmdate( 'Y-m-d H:i:s', $ddate_timestamp + $time_difference );