[wp-trac] Re: [WordPress Trac] #7592: index.php doesn't generate 404's

WordPress Trac wp-trac at lists.automattic.com
Mon Aug 25 19:24:03 GMT 2008


#7592: index.php doesn't generate 404's
---------------------+------------------------------------------------------
 Reporter:  btmorex  |        Owner:  anonymous
     Type:  defect   |       Status:  new      
 Priority:  normal   |    Milestone:  2.7      
Component:  General  |      Version:  2.6.1    
 Severity:  normal   |   Resolution:           
 Keywords:           |  
---------------------+------------------------------------------------------
Comment (by mtekk):

 I can reproduce similar behavior. Though I don't really think it's a bug.

 "Passing ?p=somenon-existantpostnumber as the query will get you a
 WordPress error that no posts match your query, though."

 It's funny that is_404() returns false in that case (as does is_search())
 since one of the two should return true in that case (probably should be a
 search per what mrmist said, as index.php does exist).

 Now if /index.php?error=404 is supposed to return a 404 (I don't know
 where in the codex it states this but assuming it's correct) and is not
 then that would be a bug.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/7592#comment:3>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list