Make WordPress Core

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#201 closed defect (bug) (fixed)

The name of the previous month in the calendar is not localized

Reported by: anonymousbugger Owned by: ryan
Milestone: Priority: normal
Severity: trivial Version:
Component: Template Keywords:
Focuses: Cc:


In template--functions-general.php, line 404:

$month_abbrev[$month[zeroise($previous->month, 2)]]

It shold be:

substr($month[zeroise($previous->month, 2)], 0, 3)


Change History (5)

#2 @ryan
14 years ago

  • Owner changed from anonymous to rboren
  • Status changed from new to assigned

#3 @ryan
14 years ago

Previous month is localized. It's next month that's broken. substr operations are not allowed because they are not multi-byte aware. That's why we use the $month_abbrev array.

#4 @ryan
14 years ago

  • Resolution changed from 10 to 20
  • Status changed from assigned to closed


This fixes the localization of the next month link.

Note: See TracTickets for help on using tickets.