Skip to content

Commit a930d25

Browse files
committed
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
1 parent c45465c commit a930d25

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

src/wp-includes/formatting.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4728,7 +4728,7 @@ function wp_make_link_relative( $link ) {
47284728
* @global wpdb $wpdb WordPress database abstraction object.
47294729
*
47304730
* @param string $option The name of the option.
4731-
* @param string $value The unsanitised value.
4731+
* @param string $value The unsanitized value.
47324732
* @return string Sanitized value.
47334733
*/
47344734
function sanitize_option( $option, $value ) {

src/wp-includes/general-template.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* Loads header template.
1111
*
1212
* Includes the header template for a theme or if a name is specified then a
13-
* specialised header will be included.
13+
* specialized header will be included.
1414
*
1515
* For the parameter, if the file is called "header-special.php" then specify
1616
* "special".
@@ -19,7 +19,7 @@
1919
* @since 5.5.0 A return value was added.
2020
* @since 5.5.0 The `$args` parameter was added.
2121
*
22-
* @param string $name The name of the specialised header.
22+
* @param string $name The name of the specialized header.
2323
* @param array $args Optional. Additional arguments passed to the header template.
2424
* Default empty array.
2525
* @return void|false Void on success, false if the template does not exist.
@@ -54,7 +54,7 @@ function get_header( $name = null, $args = array() ) {
5454
* Loads footer template.
5555
*
5656
* Includes the footer template for a theme or if a name is specified then a
57-
* specialised footer will be included.
57+
* specialized footer will be included.
5858
*
5959
* For the parameter, if the file is called "footer-special.php" then specify
6060
* "special".
@@ -63,7 +63,7 @@ function get_header( $name = null, $args = array() ) {
6363
* @since 5.5.0 A return value was added.
6464
* @since 5.5.0 The `$args` parameter was added.
6565
*
66-
* @param string $name The name of the specialised footer.
66+
* @param string $name The name of the specialized footer.
6767
* @param array $args Optional. Additional arguments passed to the footer template.
6868
* Default empty array.
6969
* @return void|false Void on success, false if the template does not exist.
@@ -98,7 +98,7 @@ function get_footer( $name = null, $args = array() ) {
9898
* Loads sidebar template.
9999
*
100100
* Includes the sidebar template for a theme or if a name is specified then a
101-
* specialised sidebar will be included.
101+
* specialized sidebar will be included.
102102
*
103103
* For the parameter, if the file is called "sidebar-special.php" then specify
104104
* "special".
@@ -107,7 +107,7 @@ function get_footer( $name = null, $args = array() ) {
107107
* @since 5.5.0 A return value was added.
108108
* @since 5.5.0 The `$args` parameter was added.
109109
*
110-
* @param string $name The name of the specialised sidebar.
110+
* @param string $name The name of the specialized sidebar.
111111
* @param array $args Optional. Additional arguments passed to the sidebar template.
112112
* Default empty array.
113113
* @return void|false Void on success, false if the template does not exist.
@@ -145,7 +145,7 @@ function get_sidebar( $name = null, $args = array() ) {
145145
* in the theme.
146146
*
147147
* Includes the named template part for a theme or if a name is specified then a
148-
* specialised part will be included. If the theme contains no {slug}.php file
148+
* specialized part will be included. If the theme contains no {slug}.php file
149149
* then no template will be included.
150150
*
151151
* 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() ) {
159159
* @since 5.5.0 The `$args` parameter was added.
160160
*
161161
* @param string $slug The slug name for the generic template.
162-
* @param string $name The name of the specialised template.
162+
* @param string $name The name of the specialized template.
163163
* @param array $args Optional. Additional arguments passed to the template.
164164
* Default empty array.
165165
* @return void|false Void on success, false if the template does not exist.

src/wp-mail.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@
147147

148148
if ( preg_match( '/Date: /i', $line ) ) { // Of the form '20 Mar 2002 20:32:37 +0100'.
149149
$ddate = str_replace( 'Date: ', '', trim( $line ) );
150-
// Remove parenthesised timezone string if it exists, as this confuses strtotime().
150+
// Remove parenthesized timezone string if it exists, as this confuses strtotime().
151151
$ddate = preg_replace( '!\s*\(.+\)\s*$!', '', $ddate );
152152
$ddate_timestamp = strtotime( $ddate );
153153
$post_date = gmdate( 'Y-m-d H:i:s', $ddate_timestamp + $time_difference );

0 commit comments

Comments
 (0)