[wp-trac] [WordPress Trac] #55941: Empty string wrongly translated to '0'

WordPress Trac noreply at wordpress.org
Mon Sep 26 20:54:58 UTC 2022


#55941: Empty string wrongly translated to '0'
--------------------------------------+-----------------------
 Reporter:  Chouby                    |       Owner:  audrasjb
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  6.1
Component:  I18N                      |     Version:  2.8
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+-----------------------
Changes (by audrasjb):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"54315" 54315]:
 {{{
 #!CommitTicketReference repository="" revision="54315"
 i18n: Ensure empty strings are consistently translated to `''`.

 This changeset fixes an edge case where empty strings were wrongly
 translated to `'0'` (falsey value) instead of `''` (empty string).

 Props Chouby, manooweb, rafiahmedd, lopo.
 Fixes #55941.
 }}}

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


More information about the wp-trac mailing list