Make WordPress Core

Opened 7 months ago

Last modified 5 months ago

#60886 new enhancement

wp_trigger_error() has no action or filter to always run like wp_doing_it_wrong has

Reported by: kkmuffme's profile kkmuffme Owned by:
Milestone: Awaiting Review Priority: normal
Severity: trivial Version:
Component: General Keywords: has-patch
Focuses: Cc:

Description

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.

Change History (4)

This ticket was mentioned in PR #6345 on WordPress/wordpress-develop by @kkmuffme.


7 months ago
#1

  • Keywords has-patch added

This ticket was mentioned in Slack in #core by kkmuffme. View the logs.


7 months ago

This ticket was mentioned in Slack in #core by kkmuffme. View the logs.


6 months ago

This ticket was mentioned in Slack in #core by mikachan. View the logs.


5 months ago

Note: See TracTickets for help on using tickets.