[wp-trac] [WordPress Trac] #11520: print_scripts_l10n() should use json_encode()

WordPress Trac wp-trac at lists.automattic.com
Thu Jul 28 17:17:03 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):

 > This is the current logic in WP_Dependencies. You cannot re-declare
 already added script or style there, i.e. trying to add 'jquery' after
 it's been queued (with different args, src, etc.) will fail.

 Sure, but in the case of external scripts, you have
 wp_unregister_script(). There's no wp_remove_script_data(). Should there
 be?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11520#comment:36>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list