Make WordPress Core

Opened 14 years ago

Closed 14 years ago

#21060 closed defect (bug) (fixed)

Duplicate time format suggestions if locale's time format is the same as default time format

Reported by: waclawjacek Owned by: nacin
Priority: normal Milestone: 3.5
Component: I18N Version: 3.4
Severity: minor Keywords: has-patch commit
Cc: Focuses:

Description

The default time format is set to “H:i” in the Polish translation, but this results in duplicate “H:i” entries on the settings screen (see: attachment). Happens in version 3.4 and earlier.

Andrew Nacin's suggestion on "WP Polyglots":

A simple array_unique() should be enough there, on both $time_formats and $date_formats.

Attachments (2)

zrzutekranuz20120623122.png​ (5.6 KB ) - added by waclawjacek 14 years ago.
21060.patch​ (881 bytes ) - added by SergeyBiryukov 14 years ago.

Download all attachments as: .zip

Change History (5)

#1 @SergeyBiryukov
14 years ago

  • Keywords has-patch added
  • Milestone Awaiting Review → 3.5

Thanks, I had it on my list as well.

#2 @ryan
14 years ago

  • Keywords commit added

#3 @nacin
14 years ago

  • Owner set to nacin
  • Resolution → fixed
  • Status new → closed

In [22299]:

Don't show the same time or date format twice on the General Settings page. This can occur if a translated format is the same as an existing default format. fixes #21060.

Note: See TracTickets for help on using tickets.