Make WordPress Core

Opened 6 years ago

Last modified 6 years ago

#19939 closed defect (bug)

is_post_type_archive doesn't work with Tax Query — at Initial Version

Reported by: wonderboymusic Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.3.1
Component: Posts, Post Types Keywords: has-patch
Focuses: Cc:


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' )

Change History (2)

Note: See TracTickets for help on using tickets.