[wp-trac] [WordPress Trac] #41934: Update load.php with wp_is_bad_request function

WordPress Trac noreply at wordpress.org
Wed Sep 20 18:09:58 UTC 2017


#41934: Update load.php with wp_is_bad_request function
----------------------------+------------------------------
 Reporter:  rpayne7264      |       Owner:
     Type:  enhancement     |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Bootstrap/Load  |     Version:  trunk
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:
----------------------------+------------------------------
Description changed by SergeyBiryukov:

Old description:

> 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.

New description:

 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.

--

--
Ticket URL: <https://core.trac.wordpress.org/ticket/41934#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list