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

WordPress Trac noreply at wordpress.org
Fri Jun 17 12:03:09 UTC 2022


#55941: Empty string wrongly translated to '0'
--------------------------+---------------------
 Reporter:  Chouby        |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  6.1
Component:  I18N          |     Version:  2.8
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+---------------------

Comment (by rafiahmedd):

 I think we can return just an empty string instead of `false` because
 `false` return a value `0` and that's why an empty string turns into `0`
 instead of `''`.

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


More information about the wp-trac mailing list