Ticket #10292: 10292.2.patch
File 10292.2.patch, 983 bytes (added by , 15 years ago) |
---|
-
wp-includes/functions.php
3222 3222 /** 3223 3223 * Gives a nicely formatted list of timezone strings // temporary! Not in final 3224 3224 * 3225 * @param string $selectedzone - which zone should be the selectedone3225 * @param $selected_zone string Selected Zone 3226 3226 * 3227 3227 */ 3228 3228 function wp_timezone_choice( $selected_zone ) { … … 3320 3320 $structure[] = '<option ' . $selected . 'value="' . esc_attr( $value ) . '">' . esc_html( $display ) . "</option>"; 3321 3321 3322 3322 // Close continent optgroup 3323 if ( !empty( $zone['city'] ) && isset( $zonen[$key + 1] ) && $zonen[$key + 1]['continent'] !== $zone['continent']) {3323 if ( !empty( $zone['city'] ) && ( !isset($zonen[$key + 1]) || (isset( $zonen[$key + 1] ) && $zonen[$key + 1]['continent'] !== $zone['continent']) ) ) { 3324 3324 $structure[] = '</optgroup>'; 3325 3325 } 3326 3326 }