Make WordPress Core

Changeset 11288


Ignore:
Timestamp:
05/12/2009 12:32:36 AM (14 years ago)
Author:
ryan
Message:

Fix sign of GMT offsets. Props Denis-de-Bernardy. fixes #9758

File:
1 edited

Legend:

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

    r11221 r11288  
    31153115    }
    31163116
    3117     asort($zonen);
     3117    usort($zonen, create_function(
     3118        '$a, $b', '
     3119        if ( $a["continent"] == $b["continent"] && $a["city"] == $b["city"] )
     3120            return strnatcasecmp($a["subcity"], $b["subcity"]);
     3121        elseif ( $a["continent"] == $b["continent"] )
     3122            return strnatcasecmp($a["city"], $b["city"]);
     3123        else
     3124            return strnatcasecmp($a["continent"], $b["continent"]);
     3125        '));
     3126   
    31183127    $structure = '';
    31193128    $pad = '   ';
     
    31393148                $city = $city . '/'. $subcity;
    31403149            }
    3141             $structure .= "\t<option ".((($continent.'/'.$city)==$selectedzone)?'selected="selected"':'')." value=\"".($continent.'/'.$city)."\">$pad".str_replace('_',' ',$city)."</option>\n"; //Timezone
     3150            $display = str_replace('_',' ',$city);
     3151            if ( $continent == 'Etc' )
     3152                $display = strtr($display, '+-', '-+');
     3153            $structure .= "\t<option ".((($continent.'/'.$city)==$selectedzone)?'selected="selected"':'')." value=\"".($continent.'/'.$city)."\">$pad".$display."</option>\n"; //Timezone
    31423154        } else {
    31433155            $structure .= "<option ".(($continent==$selectedzone)?'selected="selected"':'')." value=\"".$continent."\">".$continent."</option>\n"; //Timezone
Note: See TracChangeset for help on using the changeset viewer.