[wp-trac] [WordPress Trac] #16373: Wrong page loaded requesting custom registered query_vars when correcting is_* for page_on_front requests

WordPress Trac wp-trac at lists.automattic.com
Wed Aug 17 02:03:03 UTC 2011


#16373: Wrong page loaded requesting custom registered query_vars when correcting
is_* for page_on_front requests
---------------------------------+-----------------------------
 Reporter:  jondavis             |       Owner:  markjaquith
     Type:  defect (bug)         |      Status:  accepted
 Priority:  high                 |   Milestone:  Future Release
Component:  Query                |     Version:  3.0
 Severity:  normal               |  Resolution:
 Keywords:  has-patch 3.3-early  |
---------------------------------+-----------------------------

Comment (by nacin):

 `if ( empty($_query) || !array_diff( array_keys($_query), array('preview',
 'page', 'paged', 'cpage') ) ) {`

 Maybe someone with more knowledge of the history here can shed some light
 on what this is supposed to do, and why it avoids normal query vars.

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


More information about the wp-trac mailing list