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

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


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

Comment (by nacin):

 In [21132]:
 {{{
 #!CommitTicketReference repository="" revision="21132"
 If a plugin triggers the WP_Scripts constructor prior to init, fire
 wp_default_scripts()
 then and again on init.

 Only add our localized strings once we've fired init, in case we do have
 the situation
 where we fire wp_default_scripts() twice.

 Fixes issues where plugins or themes try to enqueue a default script
 handle prior to
 init. Does not allow #19959 to regress.

 see #20971 for trunk.
 }}}

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


More information about the wp-trac mailing list