[wp-trac] [WordPress Trac] #29722: wp_localize_script should be able to manage scalars

WordPress Trac noreply at wordpress.org
Mon Sep 22 14:11:19 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 kitchin):

 Should satisfy:
 {{{
  * @param mixed $l10n         The data to pass through to json_encode().
                               If the data is a string, html entities are
 decoded.
                               If the data is an array, first dimension
 string values
                               are html entity decoded.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29722#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list