Changeset 11290
- Timestamp:
- 05/12/2009 01:04:16 AM (16 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r11288 r11290 3134 3134 if ( empty($selectcontinent) && !empty($city) ) { 3135 3135 $selectcontinent = $continent; 3136 $structure .= '<optgroup label="'. $continent.'">' . "\n"; // continent3136 $structure .= '<optgroup label="'. esc_attr( translate( $continent ) ) .'">' . "\n"; // continent 3137 3137 } elseif ( !empty($selectcontinent) && $selectcontinent != $continent ) { 3138 3138 $structure .= "</optgroup>\n"; … … 3140 3140 if ( !empty($city) ) { 3141 3141 $selectcontinent = $continent; 3142 $structure .= '<optgroup label="'. $continent.'">' . "\n"; // continent3142 $structure .= '<optgroup label="'. esc_attr( translate( $continent ) ) .'">' . "\n"; // continent 3143 3143 } 3144 3144 } … … 3149 3149 } 3150 3150 $display = str_replace('_',' ',$city); 3151 $display = translate($display); 3151 3152 if ( $continent == 'Etc' ) 3152 3153 $display = strtr($display, '+-', '-+'); 3153 3154 $structure .= "\t<option ".((($continent.'/'.$city)==$selectedzone)?'selected="selected"':'')." value=\"".($continent.'/'.$city)."\">$pad".$display."</option>\n"; //Timezone 3154 3155 } else { 3155 $structure .= "<option ".(($continent==$selectedzone)?'selected="selected"':'')." value=\"".$continent."\">" .$continent."</option>\n"; //Timezone3156 $structure .= "<option ".(($continent==$selectedzone)?'selected="selected"':'')." value=\"".$continent."\">" . translate($continent) . "</option>\n"; //Timezone 3156 3157 } 3157 3158 }
Note: See TracChangeset
for help on using the changeset viewer.