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:
Aaron Jorbin 2016-09-01 18:33:07 +00:00
parent f9e9854395
commit 5387a52a0b
1 changed files with 1 additions and 1 deletions

View File

@ -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 ) ) : ?>