Changeset 10756
- Timestamp:
- 03/10/2009 03:26:52 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r10755 r10756 3095 3095 */ 3096 3096 function wp_timezone_choice($selectedzone) { 3097 $continents = array('Africa', 'America', 'Antarctica', 'Arctic', 'Asia', 'Atlantic', 'Australia', 'Europe', 'Indian', 'Pacific', 'Etc'); 3098 3097 3099 $all = timezone_identifiers_list(); 3098 3100 … … 3100 3102 foreach ( $all as $zone ) { 3101 3103 $zone = explode('/',$zone); 3104 if ( ! in_array($zone[0], $continents) ) 3105 continue; 3102 3106 $zonen[$i]['continent'] = isset($zone[0]) ? $zone[0] : ''; 3103 3107 $zonen[$i]['city'] = isset($zone[1]) ? $zone[1] : ''; … … 3110 3114 $pad = ' '; 3111 3115 3112 $continents = array('Africa', 'America', 'Antarctica', 'Arctic', 'Asia', 'Atlantic', 'Australia', 'Europe', 'Indian', 'Pacific', 'Etc');3113 3114 3116 if ( empty($selectedzone) ) 3115 3117 $structure .= '<option selected="selected" value="">' . __('Select a city') . "</option>\n"; 3116 3118 foreach ( $zonen as $zone ) { 3117 3119 extract($zone); 3118 if ( ! in_array($continent, $continents) )3119 continue;3120 3120 if ( empty($selectcontinent) && !empty($city) ) { 3121 3121 $selectcontinent = $continent;
Note: See TracChangeset
for help on using the changeset viewer.