[wp-trac] [WordPress Trac] #25514: Hook Docs: wp-includes/query.php

WordPress Trac noreply at wordpress.org
Tue Oct 8 19:51:49 UTC 2013


#25514: Hook Docs: wp-includes/query.php
--------------------------+------------------------------
 Reporter:  dougwollison  |       Owner:  DrewAPicture
     Type:  enhancement   |      Status:  reviewing
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Inline Docs   |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |
--------------------------+------------------------------

Comment (by dougwollison):

 How's about...

 "Note: keep in mind the context of any conditional tags you use. For
 example, to test if THIS instance is the main query, use
 $this->is_main_query(). This is because the global function versions, such
 as is_main_query(), are run on the global $wp_query instance."

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


More information about the wp-trac mailing list