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

WordPress Trac wp-trac at lists.automattic.com
Tue Jun 26 06:29:01 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  |
------------------------------+---------------------
Changes (by nacin):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [21134]:
 {{{
 #!CommitTicketReference repository="" revision="21134"
 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.

 fixes #20971 for 3.4.
 }}}

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


More information about the wp-trac mailing list