[wp-trac] [WordPress Trac] #25280: wp_localize_script unexpectedly converts numbers to strings
WordPress Trac
noreply at wordpress.org
Wed Sep 17 19:09:01 UTC 2014
#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 adamsilverstein):
[attachment:25280.3.patch]
* adds a unit test, verified ints and booleans passed properly
* apologies for the funky naming
* leaving out 25280.4.patch for now, passing scalar values outside scope
of this ticket
--
Ticket URL: <https://core.trac.wordpress.org/ticket/25280#comment:23>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list