[wp-trac] [WordPress Trac] #11520: print_scripts_l10n() should use json_encode()
WordPress Trac
wp-trac at lists.automattic.com
Mon Jul 25 08:29:26 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 |
------------------------------------+------------------------
Comment (by scribu):
> wp_localize_script() is for localizing a script.
IMO, that's an arbitrary distinction, since there's no native way to do
that in JavaScript.
On the other hand, add_script_data() could be a wrapper for
add_inline_script(), if we decide to add it.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11520#comment:24>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list