mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user