From 5387a52a0b9aa15100d2e1b8b2d2f07da82fe281 Mon Sep 17 00:00:00 2001 From: Aaron Jorbin Date: Thu, 1 Sep 2016 18:33:07 +0000 Subject: [PATCH] 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 --- src/wp-admin/options-general.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/options-general.php b/src/wp-admin/options-general.php index ce95119d7e..765c93f8d7 100644 --- a/src/wp-admin/options-general.php +++ b/src/wp-admin/options-general.php @@ -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.' ), '' . __( 'UTC' ) . '', - '' . date_i18n( $timezone_format, false, 'gmt' ) . '' + '' . date_i18n( $timezone_format, false, true ) . '' ); ?>