[wp-trac] [WordPress Trac] #10978: get_queried_object bug for else/if statement is_author ln 2575 query.php
WordPress Trac
wp-trac at lists.automattic.com
Mon Oct 19 16:46:16 UTC 2009
#10978: get_queried_object bug for else/if statement is_author ln 2575 query.php
--------------------------+-------------------------------------------------
Reporter: eddie.gomez | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Unassigned
Component: General | Version:
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
the else/if is_author block only checks for the existence of
$this->get('author') - returning false in previously set permalinks where
author is followed by the author name and not an ID,(eg,
http://www.domainname.com/author/someauthor@domain.com). Changed block to
check for both author and author_name:
else if ($this->is_author) {
if(!$this->get('author') && $this->get('author_name')){
$author = $this->get('author_name');
}else{
$author_id = (int) $this->get('author');
$author = get_userdata($author_id);
}
$this->queried_object = $author;
$this->queried_object_id = $author_id;
}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10978>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list