WordPress.org

Make WordPress Core

Ticket #10206: t10206-timezone-cities-css-left-margin.diff.patch

File t10206-timezone-cities-css-left-margin.diff.patch, 1.4 KB (added by demetris, 9 years ago)

Removes NBSP padding for timezone cities, adds CSS left margin

  • wp-admin/wp-admin.css

     
    437437        padding: 2px;
    438438}
    439439
     440#wpcontent select#timezone_string option {
     441        margin-left: 1em;
     442}
     443
    440444.approve {
    441445        display: none;
    442446}
  • wp-includes/functions.php

     
    32333233                '));
    32343234
    32353235        $structure = '';
    3236         $pad = '   ';
    32373236
    32383237        if ( empty($selectedzone) )
    32393238                $structure .= '<option selected="selected" value="">' . __('Select a city') . "</option>\n";
     
    32623261                        }
    32633262                        if ( $continent == 'Etc' )
    32643263                                $display = strtr($display, '+-', '-+');
    3265                         $structure .= "\t<option ".((($continent.'/'.$city)==$selectedzone)?'selected="selected"':'')." value=\"".($continent.'/'.$city)."\">$pad".$display."</option>\n"; //Timezone
     3264                        $structure .= "\t<option ".((($continent.'/'.$city)==$selectedzone)?'selected="selected"':'')." value=\"".($continent.'/'.$city)."\">".$display."</option>\n"; //Timezone
    32663265                } else {
    32673266                        $structure .= "<option ".(($continent==$selectedzone)?'selected="selected"':'')." value=\"".$continent."\">" . translate($continent, "continents-cities") . "</option>\n"; //Timezone
    32683267                }