From fda24a53edae8253943cedb66a6381b46e92c41a Mon Sep 17 00:00:00 2001 From: westi Date: Mon, 20 Jun 2011 14:58:50 +0000 Subject: [PATCH] Ensure we have a valid timezone identifier before trying to use it. Validate the new timezone identifier during option update. Fixes #17840. git-svn-id: http://svn.automattic.com/wordpress/trunk@18323 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/options-general.php | 6 ++++-- wp-includes/formatting.php | 9 +++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/wp-admin/options-general.php b/wp-admin/options-general.php index 192c7cd995..4b16a5a85e 100644 --- a/wp-admin/options-general.php +++ b/wp-admin/options-general.php @@ -162,7 +162,7 @@ if ( empty($tzstring) ) { // Create a UTC+- zone if no timezone string exists - UTC time is %s'), date_i18n($timezone_format, false, 'gmt')); ?> + UTC time is %s'), date_i18n($timezone_format, false, 'gmt')); ?> %1$s'), date_i18n($timezone_format)); ?> @@ -182,7 +182,9 @@ if ( empty($tzstring) ) { // Create a UTC+- zone if no timezone string exists ?>