[wp-trac] [WordPress Trac] #27015: WP_Query::get_queried_object() does not always work in 'pre_get_posts'

WordPress Trac noreply at wordpress.org
Sat May 17 18:35:25 UTC 2014


#27015: WP_Query::get_queried_object() does not always work in 'pre_get_posts'
----------------------------------------+------------------
 Reporter:  bcworkz                     |       Owner:
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  4.0
Component:  Query                       |     Version:  3.8
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch needs-unit-tests  |     Focuses:
----------------------------------------+------------------

Comment (by mattonomics):

 @wonderboymusic @bcworkz I've been working on this for about a day and a
 half. I've fixed up an issue or two with the patch and am writing out the
 (many, many) unit tests. Should have something in the next day or so.

 I should note that while `pre_get_posts` is the action in the title of
 this ticket, the appropriate action to test all of this on would be
 `parse_query`. That is the first point at which everything should be
 working as expected.

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


More information about the wp-trac mailing list