From 61b14efeba3ab064d39b34b48b8e4fbcfda758fe Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 10 Mar 2009 15:24:12 +0000 Subject: [PATCH] Exclude deprecated timezones. see #3962 git-svn-id: http://svn.automattic.com/wordpress/trunk@10755 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 8aa5f58f7b..c88e982413 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -3109,10 +3109,14 @@ function wp_timezone_choice($selectedzone) { $structure = ''; $pad = '   '; + $continents = array('Africa', 'America', 'Antarctica', 'Arctic', 'Asia', 'Atlantic', 'Australia', 'Europe', 'Indian', 'Pacific', 'Etc'); + if ( empty($selectedzone) ) $structure .= '\n"; foreach ( $zonen as $zone ) { extract($zone); + if ( ! in_array($continent, $continents) ) + continue; if ( empty($selectcontinent) && !empty($city) ) { $selectcontinent = $continent; $structure .= '' . "\n"; // continent