WordPress.org

Make WordPress Core

Changeset 18860


Ignore:
Timestamp:
10/01/11 20:50:08 (3 years ago)
Author:
azaozz
Message:

Change month dropdown display in date pickers to include month number, fixes #18838

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r18852 r18860  
    587587    $month = "<select " . ( $multi ? '' : 'id="mm" ' ) . "name=\"mm\"$tab_index_attribute>\n"; 
    588588    for ( $i = 1; $i < 13; $i = $i +1 ) { 
    589         $month .= "\t\t\t" . '<option value="' . zeroise($i, 2) . '"'; 
     589        $monthnum = zeroise($i, 2); 
     590        $month .= "\t\t\t" . '<option value="' . $monthnum . '"'; 
    590591        if ( $i == $mm ) 
    591592            $month .= ' selected="selected"'; 
    592         $month .= '>' . $wp_locale->get_month_abbrev( $wp_locale->get_month( $i ) ) . "</option>\n"; 
     593        $month .= '>' . $monthnum . '-' . $wp_locale->get_month_abbrev( $wp_locale->get_month( $i ) ) . "</option>\n"; 
    593594    } 
    594595    $month .= '</select>'; 
Note: See TracChangeset for help on using the changeset viewer.