[wp-trac] [WordPress Trac] #28404: wp_script_is() returns false for scripts enqueued via dependencies.

WordPress Trac noreply at wordpress.org
Sun Jul 20 00:29:00 UTC 2014


#28404: wp_script_is() returns false for scripts enqueued via dependencies.
---------------------------+-----------------------------
 Reporter:  mikejolley     |       Owner:  wonderboymusic
     Type:  defect (bug)   |      Status:  closed
 Priority:  normal         |   Milestone:  4.0
Component:  Script Loader  |     Version:  3.9.1
 Severity:  normal         |  Resolution:  fixed
 Keywords:  has-patch      |     Focuses:
---------------------------+-----------------------------
Changes (by wonderboymusic):

 * owner:   => wonderboymusic
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"29252"]:
 {{{
 #!CommitTicketReference repository="" revision="29252"
 `wp_script_is( ..., 'enqueued' )` needs to check dependencies recursively
 - a single item's dependencies may only be a subset of the full dependency
 tree. Adds a new method on `WP_Dependencies` called `->recurse_deps()`.

 Adds unit test.

 Props wonderboymusic, SergeyBiryukov, mikejolley.
 Fixes #28404.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28404#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list