[wp-trac] [WordPress Trac] #27362: Fix tag logic in WP_Query::get_queried_object()

WordPress Trac noreply at wordpress.org
Wed Mar 12 04:07:42 UTC 2014


#27362: Fix tag logic in WP_Query::get_queried_object()
------------------------------------------------------+--------------------
 Reporter:  mattonomics                               |       Owner:
     Type:  defect (bug)                              |      Status:  new
 Priority:  normal                                    |   Milestone:  3.8.2
Component:  Query                                     |     Version:  trunk
 Severity:  normal                                    |  Resolution:
 Keywords:  has-patch needs-unit-tests needs-refresh  |     Focuses:
------------------------------------------------------+--------------------

Comment (by wonderboymusic):

 In [changeset:"27511"]:
 {{{
 #!CommitTicketReference repository="" revision="27511"
 In `WP_Query::get_queried_object()`, account for `pre_get_posts` by
 checking for `tag` when `tag_id` isn't present. Tags still need to be
 rolled up into `tax_query`. Add a unit test confirming expected query vars
 during and after `pre_get_posts`.

 Props mattonomics for a patch.
 See #27362.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27362#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list