[wp-trac] [WordPress Trac] #10722: Allow filtering of whether or not 404 should be handled.
WordPress Trac
noreply at wordpress.org
Sat Jan 9 14:12:06 UTC 2016
#10722: Allow filtering of whether or not 404 should be handled.
-----------------------------------+--------------------------
Reporter: prettyboymp | Owner: markjaquith
Type: enhancement | Status: assigned
Priority: normal | Milestone: 4.5
Component: Query | Version: 2.8.5
Severity: normal | Resolution:
Keywords: has-patch 2nd-opinion | Focuses:
-----------------------------------+--------------------------
Changes (by ocean90):
* milestone: Future Release => 4.5
Comment:
[attachment:10722.5.patch] introduces a filter `pre_handle_404` to allow
short-circuiting the status handling.
In [https://github.com/deliciousbrains/GlotPress/issues/201 GlotPress we
don't use the main query at all]. Therefore, if you have no published
posts each request gets handled as a 404 error.
Thoughts?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/10722#comment:20>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list