WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#9847 closed defect (bug) (fixed)

wp_sprintf_l() incorrect last item separator

Reported by: abelcheung Owned by:
Milestone: 2.8 Priority: normal
Severity: normal Version:
Component: Formatting Keywords: has-patch
Focuses: Cc:

Description

While ", and" is only a separator between last 2 items in English, in formatting.php it is used as separator between last *3* items instead. This is due to an incorrect item count, which is fixed in the patch attached.

Attachments (1)

wp-fix-wp_sprintf_l-count.patch (330 bytes) - added by abelcheung 6 years ago.
Fix item count in wp_sprintf_l()

Download all attachments as: .zip

Change History (3)

@abelcheung6 years ago

Fix item count in wp_sprintf_l()

comment:1 @Denis-de-Bernardy6 years ago

  • Milestone changed from Unassigned to 2.8

comment:2 @ryan6 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [11394]) Fix item count in wp_sprintf_l(). Props abelcheung. fixes #9847

Note: See TracTickets for help on using tickets.