[wp-trac] [WordPress Trac] #25280: wp_localize_script unexpectedly converts numbers to strings
WordPress Trac
noreply at wordpress.org
Wed Sep 23 02:16:57 UTC 2015
#25280: wp_localize_script unexpectedly converts numbers to strings
----------------------------------------------+----------------------------
Reporter: adamsilverstein | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future
Component: I18N | Release
Severity: normal | Version: 3.2
Keywords: has-patch dev-feedback 4.1-early | Resolution:
| Focuses: javascript
----------------------------------------------+----------------------------
Comment (by jtsternberg):
I'm not sure
https://core.trac.wordpress.org/attachment/ticket/25280/25280.5.patch is a
good idea as it will break backwards-compatibility. I'm guessing there are
many scripts which strictly check for string values (I know I have), and
if we changed this, it would break all of them.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/25280#comment:28>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list