[wp-trac] [WordPress Trac] #11520: print_scripts_l10n() should use json_encode()

WordPress Trac wp-trac at lists.automattic.com
Tue Jul 19 19:54:31 UTC 2011


#11520: print_scripts_l10n() should use json_encode()
------------------------------------+------------------------
 Reporter:  scribu                  |       Owner:  azaozz
     Type:  enhancement             |      Status:  reviewing
 Priority:  normal                  |   Milestone:  3.3
Component:  JavaScript              |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |
------------------------------------+------------------------
Changes (by azaozz):

 * status:  new => reviewing
 * milestone:  Future Release => 3.3


Comment:

 If we add this it could be used to output any dynamically generated JS
 from PHP (plugins, themes, etc.). Wondering if it's worth renaming it as
 "l10n" doesn't really describe it properly. Also need to support more than
 one addition per script, would make it a lot more flexible.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11520#comment:13>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list