[wp-trac] [WordPress Trac] #10722: Allow filtering of whether or not 404 should be handled.
WordPress Trac
noreply at wordpress.org
Tue Feb 23 16:07:41 UTC 2016
#10722: Allow filtering of whether or not 404 should be handled.
-----------------------------------+--------------------------
Reporter: prettyboymp | Owner: markjaquith
Type: enhancement | Status: closed
Priority: normal | Milestone: 4.5
Component: Query | Version: 2.8.5
Severity: normal | Resolution: fixed
Keywords: has-patch 2nd-opinion | Focuses:
-----------------------------------+--------------------------
Changes (by ocean90):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"36629"]:
{{{
#!CommitTicketReference repository="" revision="36629"
In `WP::handle_404()` introduce a filter `pre_handle_404` to short-circuit
default header status handling.
This comes handy if you use WordPress without posts, means `$wp_query`
contains no results.
Props prettyboymp, hakre, prettyboymp, Denis-de-Bernardy, ethitter,
ocean90.
Fixes #10722.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/10722#comment:21>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list