WordPress.org

Make WordPress Core

Changeset 10756


Ignore:
Timestamp:
03/10/09 15:26:52 (5 years ago)
Author:
ryan
Message:

Filter continents in the first loop. see #3962

File:
1 edited

Legend:

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

    r10755 r10756  
    30953095 */ 
    30963096function wp_timezone_choice($selectedzone) { 
     3097    $continents = array('Africa', 'America', 'Antarctica', 'Arctic', 'Asia', 'Atlantic', 'Australia', 'Europe', 'Indian', 'Pacific', 'Etc'); 
     3098 
    30973099    $all = timezone_identifiers_list(); 
    30983100 
     
    31003102    foreach ( $all as $zone ) { 
    31013103        $zone = explode('/',$zone); 
     3104        if ( ! in_array($zone[0], $continents) ) 
     3105            continue; 
    31023106        $zonen[$i]['continent'] = isset($zone[0]) ? $zone[0] : ''; 
    31033107        $zonen[$i]['city'] = isset($zone[1]) ? $zone[1] : ''; 
     
    31103114    $pad = '   '; 
    31113115 
    3112     $continents = array('Africa', 'America', 'Antarctica', 'Arctic', 'Asia', 'Atlantic', 'Australia', 'Europe', 'Indian', 'Pacific', 'Etc'); 
    3113  
    31143116    if ( empty($selectedzone) ) 
    31153117        $structure .= '<option selected="selected" value="">' . __('Select a city') . "</option>\n"; 
    31163118    foreach ( $zonen as $zone ) { 
    31173119        extract($zone); 
    3118         if ( ! in_array($continent, $continents) ) 
    3119             continue; 
    31203120        if ( empty($selectcontinent) && !empty($city) ) { 
    31213121            $selectcontinent = $continent; 
Note: See TracChangeset for help on using the changeset viewer.