[wp-trac] [WordPress Trac] #11520: print_scripts_l10n() should use json_encode()
WordPress Trac
wp-trac at lists.automattic.com
Sun Dec 20 00:21:07 UTC 2009
#11520: print_scripts_l10n() should use json_encode()
-------------------------+--------------------------------------------------
Reporter: scribu | Owner: azaozz
Type: enhancement | Status: new
Priority: normal | Milestone: 3.0
Component: JavaScript | Version:
Severity: normal | Keywords:
-------------------------+--------------------------------------------------
Changes (by azaozz):
* keywords: has-patch =>
Comment:
Problem is that not all browsers have built-in support for JSON (yet), so
this will need json2.js always included. Also perhaps we can standardize a
way to pass data to JS and use that for translations making
wp_localize_script() obsolete.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11520#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list