[wp-trac] [WordPress Trac] #23329: Issue _doing_it_wrong() for is_main_query()

WordPress Trac noreply at wordpress.org
Tue Sep 24 17:09:57 UTC 2013


#23329: Issue _doing_it_wrong() for is_main_query()
-----------------------------------+------------------
 Reporter:  ethitter               |       Owner:
     Type:  enhancement            |      Status:  new
 Priority:  normal                 |   Milestone:  3.7
Component:  Query                  |     Version:  3.3
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch needs-codex  |
-----------------------------------+------------------

Comment (by nacin):

 In [changeset:"25605"]:
 {{{
 #!CommitTicketReference repository="" revision="25605"
 When is_main_query() is called during the pre_get_posts hook, issue
 _doing_it_wrong().

 The is_main_query() WP_Query method should be used in these instances
 instead.
 see #23329.
 }}}

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


More information about the wp-trac mailing list