[wp-trac] [WordPress Trac] #11348: Archive Page Should be 404.php When !have_posts()
WordPress Trac
wp-trac at lists.automattic.com
Tue Feb 16 07:25:15 UTC 2010
#11348: Archive Page Should be 404.php When !have_posts()
--------------------------+-------------------------------------------------
Reporter: miqrogroove | Owner: ryan
Type: defect (bug) | Status: reopened
Priority: high | Milestone: 3.0
Component: Query | Version: 2.8.4
Severity: major | Resolution:
Keywords: |
--------------------------+-------------------------------------------------
Comment(by beaulebens):
If a request is for a specific post_id (e.g. ?p=123) and that post_id does
not exist within wp_posts, then I'd agree, it should return a 404; that
content is truly not found.
In the specific example cited on this ticket though, where we're talking
about a Category, which does exist, but doesn't contain any posts, then I
think 200 is an appropriate response code (the Category was indeed found
after all).
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11348#comment:20>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list