[wp-trac] [WordPress Trac] #11348: Archive Page Should be 404.php When !have_posts()

WordPress Trac wp-trac at lists.automattic.com
Mon Jan 11 00:38:13 UTC 2010


#11348: Archive Page Should be 404.php When !have_posts()
--------------------------+-------------------------------------------------
 Reporter:  miqrogroove   |        Owner:  ryan    
     Type:  defect (bug)  |       Status:  reopened
 Priority:  normal        |    Milestone:  2.9     
Component:  Query         |      Version:  2.8.4   
 Severity:  normal        |   Resolution:          
 Keywords:                |  
--------------------------+-------------------------------------------------

Comment(by miqrogroove):

 > But in the case of an empty category, it has found something

 What did it find, and how is it relevant?  This is a direct quote from a
 fresh WordPress installation:

 "Sorry, but there aren't any posts in the term1 category yet."

 That is the ONLY content being displayed other than the headers and
 footers.  That is a not found condition, and that is exactly what the 404
 status is used for.

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


More information about the wp-trac mailing list