[wp-trac] [WordPress Trac] #11520: print_scripts_l10n() should use json_encode()
WordPress Trac
wp-trac at lists.automattic.com
Mon Jul 25 05:53:17 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 nacin):
I'm not sure I see a need to actually deprecate a function here.
wp_localize_script() is for localizing a script.
add_script_data() is for adding script data. To me, it sounds less of a
replacement, and more like a lower level of the API, like *_metadata().
wp_localize_script() can be a wrapper.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11520#comment:23>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list