WordPress.org

Make WordPress Core

Changeset 11678


Ignore:
Timestamp:
07/01/09 17:59:34 (6 years ago)
Author:
ryan
Message:

Output final optgroup. Props hakre. fixes #10292 for 2.8.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.8/wp-includes/functions.php

    r11648 r11678  
    32233223 * Gives a nicely formatted list of timezone strings // temporary! Not in final 
    32243224 * 
    3225  * @param string $selectedzone - which zone should be the selected one 
     3225 * @param $selected_zone string Selected Zone 
    32263226 * 
    32273227 */ 
     
    33213321         
    33223322        // 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']) ) ) { 
    33243324            $structure[] = '</optgroup>'; 
    33253325        } 
Note: See TracChangeset for help on using the changeset viewer.