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

WordPress Trac noreply at wordpress.org
Tue Nov 18 05:53:11 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:  has-patch needs-docs  |     Focuses:
----------------------------------+------------------------------

Comment (by rmccue):

 Replying to [comment:6 johnbillion]:
 > We might as well go the whole hog and add a default hook onto those
 actions which triggers a PHP notice when `WP_DEBUG` is on.
 >
 > The third parameter needs adding to the hook docs too.

 Fixed on both by doing it inline, ala
 `_doing_it_wrong`/`_deprecated_{file,function}`. Can switch to a default
 filter if you'd prefer, but it's not really reusable code since it has
 different messages for each.

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


More information about the wp-trac mailing list