[wp-trac] [WordPress Trac] #60886: wp_trigger_error() has no action or filter to always run like wp_doing_it_wrong has

WordPress Trac noreply at wordpress.org
Tue Apr 2 18:58:24 UTC 2024


#60886: wp_trigger_error() has no action or filter to always run like
wp_doing_it_wrong has
-------------------------+-----------------------------
 Reporter:  kkmuffme     |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:
 Severity:  trivial      |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 While there is e.g. wp_doing_it_wrong_run that will always run, the hooks
 in wp_trigger_error() are after validating WP_DEBUG
 Therefore there is no way to hook onto it/get those errors from a plugin
 if WP_DEBUG isn't true.

 Sometimes you don't/can't enable debug or want to only get errors for
 specific callers.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60886>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list