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 Version 1

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

Description (last modified by SergeyBiryukov)

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: #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 (2)

3 years ago

test file for proposed wp_is_bad_request enhancement

#1 @SergeyBiryukov
3 years ago

  • Description modified (diff)
Note: See TracTickets for help on using tickets.