[wp-trac] [WordPress Trac] #11520: print_scripts_l10n() should use json_encode()
WordPress Trac
wp-trac at lists.automattic.com
Sun Nov 6 17:36:11 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 azaozz):
Replying to [comment:78 nacin]:
Agreed. Was thinking/testing the usercases and having another method to
add some JS before or after a JS file is included would be the best
option.
In that terms we should `convert_entities` only on localize_script()
allowing add_script_data() to be used to pass JS code directly (non-
modified strings).
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11520#comment:80>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list