WordPress.org

Make WordPress Core

Changeset 11677


Ignore:
Timestamp:
07/01/2009 05:59:19 PM (9 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r11649 r11677  
    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.