mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-13 13:20:20 +00:00
The keyword elseif should be used instead of else if so that all control keywords look like single words.
This was a mess, is now standardized across the codebase, except for a few 3rd-party libs. See #30799. git-svn-id: https://develop.svn.wordpress.org/trunk@31090 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1502,7 +1502,7 @@ function force_balance_tags( $text ) {
|
||||
// or close to be safe $tag = '/' . $tag;
|
||||
}
|
||||
// if stacktop value = tag close value then pop
|
||||
else if ( $tagstack[$stacksize - 1] == $tag ) { // found closing tag
|
||||
elseif ( $tagstack[$stacksize - 1] == $tag ) { // found closing tag
|
||||
$tag = '</' . $tag . '>'; // Close Tag
|
||||
// Pop
|
||||
array_pop( $tagstack );
|
||||
@@ -2337,7 +2337,7 @@ function iso8601_to_datetime($date_string, $timezone = 'user') {
|
||||
|
||||
return gmdate('Y-m-d H:i:s', $timestamp);
|
||||
|
||||
} else if ($timezone == 'user') {
|
||||
} elseif ($timezone == 'user') {
|
||||
return preg_replace('#([0-9]{4})([0-9]{2})([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(Z|[\+|\-][0-9]{2,4}){0,1}#', '$1-$2-$3 $4:$5:$6', $date_string);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user