[wp-trac] [WordPress Trac] #11520: print_scripts_l10n() should use json_encode()
WordPress Trac
wp-trac at lists.automattic.com
Thu Sep 29 10:32:23 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: critical | Resolution:
Keywords: |
-------------------------+------------------------
Comment (by westi):
I'm still no happy or sure we need the underlying change here - we seem to
have spent a chunk of time on fixing something that wasn't a bug and
worked perfectly well.
{{{
wp_localize_script() is used for passing arbitrary data to JS. Currently,
you can only pass strings.
}}}
I think that people doing this are writing bugs.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11520#comment:70>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list