[wp-trac] Re: [WordPress Trac] #1969: Check for category and author
page existence
WordPress Trac
wp-trac at lists.automattic.com
Mon Jul 31 13:48:51 GMT 2006
#1969: Check for category and author page existence
---------------------------+------------------------------------------------
Reporter: chuyskywalker | Owner: anonymous
Type: defect | Status: reopened
Priority: normal | Milestone: 2.1
Component: General | Version: 2.0.1
Severity: normal | Resolution:
Keywords: bg|has-patch |
---------------------------+------------------------------------------------
Comment (by _ck_):
What is really strange is that for a user/author with no posts:
/index.php?author_name=example
works and will show author.php template even with zero posts
/author/example
will FAIL (even in 2.1a2) and show 404 template
until they have at least one post and then it will work
I believe it has to do with the way WP_QUERY in query.php parses the URL
and first believes it's on a page with posts for the rewrite URL so it
fails for the author. Very strange.
The 404 patch code by joelgilmore works but I dislike the idea of
patching the result. I wish they could fix it on the parsing. 2.1a2 still
does not have any attempt to fix what-so-ever.
--
Ticket URL: <http://trac.wordpress.org/ticket/1969>
WordPress Trac <http://wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list