[wp-trac] [WordPress Trac] #41257: translate( null, "domain" ) returns translation of "0" rather than null
WordPress Trac
noreply at wordpress.org
Sun Sep 11 17:51:54 UTC 2022
#41257: translate( null, "domain" ) returns translation of "0" rather than null
----------------------------------+------------------------------
Reporter: bobbingwide | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: I18N | Version:
Severity: minor | Resolution:
Keywords: has-unit-tests close | Focuses:
----------------------------------+------------------------------
Changes (by swissspidy):
* keywords: has-unit-tests => has-unit-tests close
Comment:
I don't think this edge case is worth handling, `null` simply isn't a
valid argument for a function that expects a string.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41257#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list