[wp-trac] [WordPress Trac] #5358: Queried object on multiple tag query holds only first tag

WordPress Trac noreply at wordpress.org
Wed Sep 4 22:29:26 UTC 2013


#5358: Queried object on multiple tag query holds only first tag
--------------------------+--------------------
 Reporter:  Kafkaesqui    |       Owner:  ryan
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.7
Component:  Taxonomy      |     Version:  2.3.1
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+--------------------
Changes (by kovshenin):

 * keywords:  has-patch needs-unit-tests => has-patch


Comment:

 Added some unit tests is [attachment:5358.3.diff].

 One thing I noticed is that although it works well with multiple tags (and
 covers the issue described in this ticket), it doesn't really work well
 with multiple post types for example, because when you specify more than
 one post type `is_post_type_archive` is no longer true. Then again, what
 should happen when you query a post type with a tag and an author,
 especially with `get_queried_object_ids()`? We might as well just return
 the whole `query_vars` array :-P

--
Ticket URL: <http://core.trac.wordpress.org/ticket/5358#comment:13>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list