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/edit.php

    r3671 r3676  
    9494            $arc_year  = $arc_row->yyear;
    9595            $arc_month = $arc_row->mmonth;
    96 
    97             if( isset($_GET['m']) && $arc_year . zeroise($arc_month, 2) == (int) $_GET['m'] )
     96            $arc_month = zeroise($arc_month, 2);
     97
     98            if( isset($_GET['m']) && $arc_year . $arc_month == (int) $_GET['m'] )
    9899                $default = 'selected="selected"';
    99100            else
    100101                $default = null;
    101102
    102             echo "<option $default value=\"" . $arc_year.zeroise($arc_month, 2) . '">';
    103             echo $month[zeroise($arc_month, 2)] . " $arc_year";
     103            echo "<option $default value=\"" . $arc_year . $arc_month . '">';
     104            echo $wp_locale->get_month($arc_month) . " $arc_year";
    104105            echo "</option>\n";
    105106        }
Note: See TracChangeset for help on using the changeset viewer.