[wp-trac] [WordPress Trac] #63642: Passing stringy number to _n() can result in a plural when singular is intended

WordPress Trac noreply at wordpress.org
Fri Jul 18 12:56:09 UTC 2025


#63642: Passing stringy number to _n() can result in a plural when singular is
intended
--------------------------------------+-----------------------------
 Reporter:  dd32                      |       Owner:  SergeyBiryukov
     Type:  defect (bug)              |      Status:  accepted
 Priority:  normal                    |   Milestone:  6.9
Component:  I18N                      |     Version:  6.5
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+-----------------------------

Comment (by SergeyBiryukov):

 Replying to [comment:6 pmbaldha]:
 > We can't replicate the issue in WordPress-Develop. Please refer to the
 attached screenshot.

 Thanks for testing! However, I've confirmed that the added assertions in
 unit tests fail before the fix and pass after, so this should be good to
 go.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63642#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list