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

WordPress Trac wp-trac at lists.automattic.com
Thu Jan 7 17:56:41 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
-------------------------+--------------------------------------------------

Comment(by prettyboymp):

 Only if its a tag, category, author, or other queried object.  While that
 covers most of the situations, it doesn't cover all of them, which is why
 the filter is needed.

 The specific instance I needed this was while using a custom post_type of
 calendar_event where the events for a month were displayed with a
 permalink structure of /events/year/month/.  I didn't want a month
 returning a 404 just because their weren't any events scheduled for the
 month yet. My only work around was to falsely set is_category as true on
 'posts_selection' then remove it on 'template_redirect'.

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


More information about the wp-trac mailing list