function wp_timezone_choice( $selected_zone,
$locale = null
) { static $mo_loaded = false,
$locale_loaded = null;
$continents = array
( 'Africa', 'America', 'Antarctica', 'Arctic', 'Asia', 'Atlantic', 'Australia', 'Europe', 'Indian', 'Pacific'
);
// Load translations for continents and cities.
if ( !
$mo_loaded ||
$locale !==
$locale_loaded ) { $locale_loaded =
$locale ?
$locale :
get_locale();
$mofile = WP_LANG_DIR . '/continents-cities-' .
$locale_loaded . '.mo';
unload_textdomain( 'continents-cities'
);
load_textdomain( 'continents-cities',
$mofile,
$locale_loaded );
$mo_loaded = true;
} $tz_identifiers =
timezone_identifiers_list();
$zonen = array
();
foreach ( $tz_identifiers as $zone ) { $zone =
explode( '/',
$zone );
if ( !
in_array( $zone[0
],
$continents, true
) ) { continue;
}