[wp-trac] [WordPress Trac] #23816: wp_enqueue_script|style() dependency failures are silent

WordPress Trac noreply at wordpress.org
Thu Nov 6 03:15:45 UTC 2014


#23816: wp_enqueue_script|style() dependency failures are silent
---------------------------+------------------------------
 Reporter:  johnbillion    |       Owner:
     Type:  enhancement    |      Status:  reopened
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Script Loader  |     Version:
 Severity:  normal         |  Resolution:
 Keywords:                 |     Focuses:
---------------------------+------------------------------

Comment (by rmccue):

 Constantly running into this. Added a patch that fires an action here,
 allowing tooling to report a broken dependency chain, but this doesn't
 report anything in core. We might want to move this into the subclasses
 instead and simply call it from the parent to allow more specific hooks,
 plus differentiation between scripts and styles.

 (Note: this file is technically part of BackPress, so I'm not sure if we
 should be doing something with actions. There aren't any in the file
 currently. That said, BackPress hasn't been synched in a long time, so I
 don't think it's an issue.)

 We could also add a default handler into core that outputs these as HTML
 comments if you have `WP_DEBUG` on and we're `doing_action( 'wp_head' )`

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


More information about the wp-trac mailing list