[wp-trac] Re: [WordPress Trac] #5490: Bad post URL gives database
error instead of 404
WordPress Trac
wp-trac at lists.automattic.com
Thu Dec 20 13:40:39 GMT 2007
#5490: Bad post URL gives database error instead of 404
---------------------+------------------------------------------------------
Reporter: Bobcat | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.5
Component: General | Version: 2.3.1
Severity: normal | Resolution:
Keywords: |
---------------------+------------------------------------------------------
Comment (by Bobcat):
It looks like the wp_old_slug_redirect redirect isn't happening because
it's not being classified as a 404. And it's not a 404 because
$wp_query->posts is not empty even though the post doesn't exist.
$wp_query->posts has one element with only comment_status and ping_status,
nothing else; there's no real post there.
--
Ticket URL: <http://trac.wordpress.org/ticket/5490#comment:4>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list