[wp-trac] [WordPress Trac] #12250: Generate 404s consistently when querying something that does not exist

WordPress Trac wp-trac at lists.automattic.com
Tue Feb 16 12:13:10 UTC 2010


#12250: Generate 404s consistently when querying something that does not exist
--------------------------+-------------------------------------------------
 Reporter:  markjaquith   |       Owner:  ryan      
     Type:  defect (bug)  |      Status:  new       
 Priority:  normal        |   Milestone:  Unassigned
Component:  Permalinks    |     Version:            
 Severity:  normal        |    Keywords:            
--------------------------+-------------------------------------------------
 WordPress 404s are inconsistent. /2010/02/this-is-not-a-real-post/ will
 generate a 404, but ?p=99999 where there is no post ID 99999 serves a 200.
 There are many other examples. The result is that 200s are served, and the
 template for the type of thing you queried against (but failed) will be
 used, instead of the 404 template.

 Expected:

 If a query does not return posts and does not match a specified queried
 object, WordPress should return a 404, and use the 404 template.

 Observed:

 WordPress returns 200s for things like ?cat=9999999 ?p=999999 etc.

 Possibly related:

 #11348 #5324

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12250>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list