[wp-trac] [WordPress Trac] #23329: Deprecate is_main_query()

WordPress Trac noreply at wordpress.org
Sun Feb 3 22:13:17 UTC 2013


#23329: Deprecate is_main_query()
-------------------------+------------------
 Reporter:  ethitter     |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  3.6
Component:  Query        |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+------------------

Comment (by ethitter):

 Okay, nacin and johnjamesjacoby made good points, so `_doing_it_wrong()`
 seems like a better idea to me.

 I've added a new patch that reflects this, taking nacin's recommended
 approach of checking the current action; the wording could probably use
 some work.

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


More information about the wp-trac mailing list