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

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

 Replying to [comment:36 scribu]:
 > Sure, but in the case of external scripts, you have
 wp_unregister_script(). There's no wp_remove_script_data(). Should there
 be?

 Good point. Don't think we need `wp_remove_script_data()` as both JS and
 CSS can easily be overwritten/overloaded at any time. Then it makes more
 sense to have the last added script/style win in case of conflict (i.e.
 they follow the "natural" order in HTML).

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


More information about the wp-trac mailing list