Make WordPress Core

Changeset 2344


Ignore:
Timestamp:
02/15/2005 12:50:23 AM (20 years ago)
Author:
saxmatt
Message:

Wrong line

File:
1 edited

Legend:

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

    r2327 r2344  
    222222    if(!empty($monthnum) && !empty($year)) {
    223223        $my_year = $year;
    224         $my_month = $month[$monthnum];
     224        $my_month = $month[str_pad($monthnum, 2, '0', STR_PAD_LEFT)];
    225225    } elseif(!empty($m)) {
    226226        $my_year = substr($m, 0, 4);
    227         $my_month = $month[str_pad($monthnum, 2, '0', STR_PAD_LEFT)];
     227        $my_month = $month[substr($m, 4, 2)];
    228228    }
    229229
Note: See TracChangeset for help on using the changeset viewer.