Exclude deprecated timezones. see #3962
git-svn-id: http://svn.automattic.com/wordpress/trunk@10755 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7c018a31cf
commit
61b14efeba
@ -3109,10 +3109,14 @@ function wp_timezone_choice($selectedzone) {
|
|||||||
$structure = '';
|
$structure = '';
|
||||||
$pad = ' ';
|
$pad = ' ';
|
||||||
|
|
||||||
|
$continents = array('Africa', 'America', 'Antarctica', 'Arctic', 'Asia', 'Atlantic', 'Australia', 'Europe', 'Indian', 'Pacific', 'Etc');
|
||||||
|
|
||||||
if ( empty($selectedzone) )
|
if ( empty($selectedzone) )
|
||||||
$structure .= '<option selected="selected" value="">' . __('Select a city') . "</option>\n";
|
$structure .= '<option selected="selected" value="">' . __('Select a city') . "</option>\n";
|
||||||
foreach ( $zonen as $zone ) {
|
foreach ( $zonen as $zone ) {
|
||||||
extract($zone);
|
extract($zone);
|
||||||
|
if ( ! in_array($continent, $continents) )
|
||||||
|
continue;
|
||||||
if ( empty($selectcontinent) && !empty($city) ) {
|
if ( empty($selectcontinent) && !empty($city) ) {
|
||||||
$selectcontinent = $continent;
|
$selectcontinent = $continent;
|
||||||
$structure .= '<optgroup label="'.$continent.'">' . "\n"; // continent
|
$structure .= '<optgroup label="'.$continent.'">' . "\n"; // continent
|
||||||
|
Loading…
Reference in New Issue
Block a user