[wp-trac] [WordPress Trac] #19939: is_post_type_archive doesn't work with Tax Query
WordPress Trac
wp-trac at lists.automattic.com
Tue Jan 31 23:29:35 UTC 2012
#19939: is_post_type_archive doesn't work with Tax Query
----------------------------+------------------------------
Reporter: wonderboymusic | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Post Types | Version: 3.3.1
Severity: normal | Resolution:
Keywords: has-patch |
----------------------------+------------------------------
Description changed by scribu:
Old description:
> same problem as here: http://core.trac.wordpress.org/ticket/18614
>
> queried_object clobbers the post_type query portion.
> $this->is_post_type_archive returns true and post_type is attainable from
> public query vars.
>
> This breaks all over eMusic. as does the other ticket, have to check
> is_post_type_archive() && 'whatever' === get_query_var( 'post_type' ) vs
> is_post_type_archive( 'whatever' )
New description:
same problem as here: #18614
queried_object clobbers the post_type query portion.
$this->is_post_type_archive returns true and post_type is attainable from
public query vars.
This breaks all over eMusic. as does the other ticket, have to check
is_post_type_archive() && 'whatever' === get_query_var( 'post_type' ) vs
is_post_type_archive( 'whatever' )
--
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19939#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list