Make WordPress Core


Ignore:
Timestamp:
04/02/2006 12:20:11 AM (18 years ago)
Author:
ryan
Message:

WP_Locale. Props Sewar. fixes #2568

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/options-general.php

    r3548 r3676  
    9595<?php
    9696for ($day_index = 0; $day_index <= 6; $day_index++) :
    97 if ($day_index == get_settings('start_of_week')) $selected = " selected='selected'";
    98 else $selected = '';
    99 echo "\n\t<option value='$day_index' $selected>$weekday[$day_index]</option>";
     97    $selected = (get_settings('start_of_week') == $day_index) ? 'selected="selected"' : '';
     98    echo "\n\t<option value='$day_index' $selected>" . $wp_locale->get_weekday($day_index) . '</option>';
    10099endfor;
    101100?>
Note: See TracChangeset for help on using the changeset viewer.