[wp-trac] [WordPress Trac] #21520: Prevent recursive script dependencies in wp_enqueue_script

WordPress Trac wp-trac at lists.automattic.com
Wed Aug 8 17:21:43 UTC 2012


#21520: Prevent recursive script dependencies in wp_enqueue_script
--------------------------+-----------------------------
 Reporter:  batmoo        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 If a script sets itself as a dependency, we should catch that, strip out
 the dependency, and throw a {{{_doing_it_wrong}}}:

 {{{wp_enqueue_script( 'my-script', '/path/to/file.js', array( 'my-script'
 ) );}}}

 This may need to be done at the lowest level possible, i.e.
 {{{_WP_Dependency}}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21520>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list