[glotpress-updates] [GlotPress] #394: [988] brokes importing '0' as a string
GlotPress
noreply at wordpress.org
Fri Jan 16 16:01:30 UTC 2015
#394: [988] brokes importing '0' as a string
--------------------------------------+-----------------
Reporter: ocean90 | Owner:
Type: defect | Status: new
Priority: normal | Milestone: 1.0
Component: General | Version:
Keywords: needs-patch dev-feedback |
--------------------------------------+-----------------
Since [988] the PO->key() method returns false for a translation entry
with '0' as singular value because `!"0" === true`.
We have to change it to `null === $this->singular || '' ===
$this->singular`.
Or should we revert the change and fix the database directly? If not,
would a helper method make sense?
--
Ticket URL: <https://glotpress.trac.wordpress.org/ticket/394>
GlotPress <https://glotpress.trac.wordpress.org>
Easy comin', easy goin'
More information about the glotpress-updates
mailing list