[wp-trac] [WordPress Trac] #10722: Allow filtering of whether or not 404 should be handled.

WordPress Trac wp-trac at lists.automattic.com
Tue Feb 23 22:48:11 UTC 2010


#10722: Allow filtering of whether or not 404 should be handled.
-------------------------+--------------------------------------------------
 Reporter:  prettyboymp  |       Owner:                  
     Type:  enhancement  |      Status:  new             
 Priority:  normal       |   Milestone:  3.0             
Component:  General      |     Version:  2.8.5           
 Severity:  normal       |    Keywords:  has-patch tested
-------------------------+--------------------------------------------------

Comment(by prettyboymp):

 To the arguments against the filter in #11312:

 The solution of setting $is_404 to false doesn't work since the handle_404
 function also checks post count.

 Adding a hook to template_redirect to override the 404 status header would
 also overwriting the no-cache headers that were set.  Which, I understand
 its a simple thing to override those too, but now you have several headers
 being messed with at different points in the program flow, which is just
 opening a bigger gap for conflicts.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10722#comment:10>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list