Make WordPress Core

Opened 3 years ago

Last modified 2 years ago

#41934 new enhancement

Update load.php with wp_is_bad_request function — at Initial Version

Reported by: rpayne7264 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.9
Component: Bootstrap/Load Keywords:
Focuses: Cc:


I propose adding a wp_is_bad_request function to load.php, as a way to allow plugin developers to short circuit code execution if the HTTP request that started the WordPress load process is considered a junk request. See: https://core.trac.wordpress.org/ticket/17246

The existing wp_favicon_request (renamed to wp_favicon_request_x in test file) is re-written to use the proposed wp_is_bad_request function.

Change History (1)

3 years ago

test file for proposed wp_is_bad_request enhancement

Note: See TracTickets for help on using tickets.