[wp-trac] [WordPress Trac] #29722: wp_localize_script should be able to manage scalars
WordPress Trac
noreply at wordpress.org
Mon Sep 22 14:03:08 UTC 2014
#29722: wp_localize_script should be able to manage scalars
-------------------------+------------------------------
Reporter: Fab1en | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: I18N | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses: javascript
-------------------------+------------------------------
Comment (by Fab1en):
Ideally, I would like to remove the "first dimension scalar values are
converted to string" part, in relation to ticket #25280. Only strings
should be "html decoded".
Replying to [comment:3 kitchin]:
> I had to edit my inline doc above. It is quite a custom function. This
part in particular might be up for debate, but matches current behavior:
>
> {{{
> If the data is an array, first dimension scalar values are converted to
string and html decoded.
> }}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29722#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list