WordPress.org

Make WordPress Core

Opened 5 weeks ago

Last modified 5 weeks ago

#48061 new enhancement

Do an action when a 404 is triggered

Reported by: johnbillion Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Query Keywords: has-patch
Focuses: Cc:
PR Number:

Description

For debugging purposes it would be great to be able to determine what triggered a 404.

If a plugin manually calls $wp_query->set_404() it can cause much head scratching. If an action was fired within this method, it would allow debugging plugins to inspect the stack trace and determine what triggered it.

Attachments (1)

48061.diff (523 bytes) - added by johnbillion 5 weeks ago.

Download all attachments as: .zip

Change History (2)

@johnbillion
5 weeks ago

#1 @johnbillion
5 weeks ago

  • Keywords has-patch added; needs-patch removed
Note: See TracTickets for help on using tickets.