Changeset 11288
- Timestamp:
- 05/12/2009 12:32:36 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r11221 r11288 3115 3115 } 3116 3116 3117 asort($zonen); 3117 usort($zonen, create_function( 3118 '$a, $b', ' 3119 if ( $a["continent"] == $b["continent"] && $a["city"] == $b["city"] ) 3120 return strnatcasecmp($a["subcity"], $b["subcity"]); 3121 elseif ( $a["continent"] == $b["continent"] ) 3122 return strnatcasecmp($a["city"], $b["city"]); 3123 else 3124 return strnatcasecmp($a["continent"], $b["continent"]); 3125 ')); 3126 3118 3127 $structure = ''; 3119 3128 $pad = ' '; … … 3139 3148 $city = $city . '/'. $subcity; 3140 3149 } 3141 $structure .= "\t<option ".((($continent.'/'.$city)==$selectedzone)?'selected="selected"':'')." value=\"".($continent.'/'.$city)."\">$pad".str_replace('_',' ',$city)."</option>\n"; //Timezone 3150 $display = str_replace('_',' ',$city); 3151 if ( $continent == 'Etc' ) 3152 $display = strtr($display, '+-', '-+'); 3153 $structure .= "\t<option ".((($continent.'/'.$city)==$selectedzone)?'selected="selected"':'')." value=\"".($continent.'/'.$city)."\">$pad".$display."</option>\n"; //Timezone 3142 3154 } else { 3143 3155 $structure .= "<option ".(($continent==$selectedzone)?'selected="selected"':'')." value=\"".$continent."\">".$continent."</option>\n"; //Timezone
Note: See TracChangeset
for help on using the changeset viewer.