[wp-trac] [WordPress Trac] #20971: Delaying wp_default_scripts() prevents enqueing

WordPress Trac wp-trac at lists.automattic.com
Tue Jun 26 21:30:45 UTC 2012


#20971: Delaying wp_default_scripts() prevents enqueing
------------------------------+---------------------
 Reporter:  nacin             |       Owner:  nacin
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  3.4.1
Component:  General           |     Version:  3.4
 Severity:  major             |  Resolution:  fixed
 Keywords:  has-patch commit  |
------------------------------+---------------------

Comment (by azaozz):

 If we are going to continue supporting "bad" plugins, wouldn't it be
 better to abstract this

 {{{
 did_action( 'init' ) && $scripts->localize( 'handle', 'handleL10n',
 array(...) );
 }}}

 into another method? So add `localise_on_init()` or similar to WP_Scripts
 and call that from script-loader.

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


More information about the wp-trac mailing list