[wp-trac] [WordPress Trac] #18614: post_type_archive_title doesn't work when tax_query is added to wp_query
WordPress Trac
noreply at wordpress.org
Tue Sep 10 03:38:00 UTC 2013
#18614: post_type_archive_title doesn't work when tax_query is added to wp_query
----------------------------------------+-----------------------------
Reporter: wonderboymusic | Owner: wonderboymusic
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 3.7
Component: Template | Version: 3.2
Severity: normal | Resolution:
Keywords: has-patch needs-unit-tests |
----------------------------------------+-----------------------------
Comment (by nacin):
And regarding [25312], even better, some of these aren't even needed
inline, because is_post_type_archive is only true when `post_type` is
*not* an array:
{{{
if ( !empty( $qv['post_type'] ) && ! is_array( $qv['post_type'] ) ) {
$post_type_obj = get_post_type_object( $qv['post_type'] );
if ( ! empty( $post_type_obj->has_archive ) )
$this->is_post_type_archive = true;
}
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18614#comment:38>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list