From 6e88e39baa42f00be09c2f1dc53e629acf479b59 Mon Sep 17 00:00:00 2001 From: audrasjb Date: Wed, 11 Jan 2023 13:59:13 +0000 Subject: [PATCH] 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. Built from https://develop.svn.wordpress.org/trunk@55051 git-svn-id: http://core.svn.wordpress.org/trunk@54584 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/formatting.php | 2 +- wp-includes/general-template.php | 16 ++++++++-------- wp-includes/version.php | 2 +- wp-mail.php | 2 +- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index bade4e2788..d3d54c422f 100644 --- a/wp-includes/formatting.php +++ b/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/wp-includes/general-template.php b/wp-includes/general-template.php index c2765d7b5a..40e6811443 100644 --- a/wp-includes/general-template.php +++ b/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/wp-includes/version.php b/wp-includes/version.php index 2da7ea9f0e..cef4bf499c 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.2-alpha-55050'; +$wp_version = '6.2-alpha-55051'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. diff --git a/wp-mail.php b/wp-mail.php index b37a88b885..631645cbed 100644 --- a/wp-mail.php +++ b/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 );