#56187 closed defect (bug) (fixed)
Wrong type in ngettext et al. filter description
Reported by: | cyrillbolliger | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 6.1 | Priority: | normal |
Severity: | trivial | Version: | 6.0 |
Component: | I18N | Keywords: | good-first-bug has-patch |
Focuses: | docs | Cc: |
Description
This ticket applies to wp-includes/l10n.php
. It addresses only a documentation problem, the code works correctly.
The argument type of the $number
argument of the following filters should be integer
instead of string
(in the docblock of the filter):
ngettext
ngettext_{$domain}
ngettext_with_context
ngettext_with_context_{$domain}
Else it contradicts the docblock of the following functions:
_n()
_nx()
Attachments (1)
Change History (6)
Note: See
TracTickets for help on using
tickets.
Hi there, welcome to WordPress Trac! Thanks for the ticket.
Good catch, introduced in [25565] / #25382.
Would you be interested in submitting a patch?