[wp-trac] [WordPress Trac] #12250: Generate 404s consistently when querying something that does not exist
WordPress Trac
wp-trac at lists.automattic.com
Mon Feb 22 16:04:34 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: 3.0
Component: Permalinks | Version:
Severity: normal | Keywords: has-patch
--------------------------+-------------------------------------------------
Comment(by markjaquith):
Replying to [comment:10 hakre]:
> Are the 404s inconsistent between what the function is_404() returns and
what the exact http response code is?
They should be. Before sending a 404, it sets is_404.
> Can the reporter who stated "WordPress 404s are inconsistent." please
provide the specs against which those are inconsistent?
I outlined two cases: ?p=999 and ?cat=999 where Post 999 and Category 999
do not exist. They serve a 200, but should serve a 400. This is a
difference in 404 handling between default querystring permalinks and
pretty permalinks. I do not agree that this is a theme issue... it's only
been handled at the theme level because our 404 handling has been
inconsistent between different permalink setups.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12250#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list