[wp-trac] [WordPress Trac] #50406: Make _wp_scripts_maybe_doing_it_wrong helpful by adding offending handle to debug output

WordPress Trac noreply at wordpress.org
Wed Jun 17 10:14:55 UTC 2020


#50406: Make _wp_scripts_maybe_doing_it_wrong helpful by adding offending handle to
debug output
---------------------------+-----------------------------
 Reporter:  janthiel       |       Owner:  SergeyBiryukov
     Type:  enhancement    |      Status:  closed
 Priority:  normal         |   Milestone:  5.5
Component:  Script Loader  |     Version:  trunk
 Severity:  normal         |  Resolution:  fixed
 Keywords:  has-patch      |     Focuses:
---------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * owner:  (none) => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"48070" 48070]:
 {{{
 #!CommitTicketReference repository="" revision="48070"
 Script Loader: Include the script or style handle in
 `_wp_scripts_maybe_doing_it_wrong()` message.

 This makes the message more helpful and allows for easier debugging.

 Props janthiel.
 Fixes #50406.
 }}}

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


More information about the wp-trac mailing list