Administration: Use a bool when when a bool is called for
The third parameter of `date_i18n` is a bool. Currently, it's a weak check, otherwise the call showing the universal time on the "General Settings" screen would be messed up. Use an actual bool so we call our own functions correctly. Fixes #37634. Props fronaldaraujo. git-svn-id: https://develop.svn.wordpress.org/trunk@38502 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f9e9854395
commit
5387a52a0b
|
@ -157,7 +157,7 @@ if ( empty($tzstring) ) { // Create a UTC+- zone if no timezone string exists
|
|||
/* translators: 1: UTC abbreviation, 2: UTC time */
|
||||
printf( __( 'Universal time (%1$s) is %2$s.' ),
|
||||
'<abbr>' . __( 'UTC' ) . '</abbr>',
|
||||
'<code>' . date_i18n( $timezone_format, false, 'gmt' ) . '</code>'
|
||||
'<code>' . date_i18n( $timezone_format, false, true ) . '</code>'
|
||||
);
|
||||
?></span>
|
||||
<?php if ( get_option( 'timezone_string' ) || ! empty( $current_offset ) ) : ?>
|
||||
|
|
Loading…
Reference in New Issue