[wp-trac] [WordPress Trac] #13535: get_query_var() not working as expected.

WordPress Trac wp-trac at lists.automattic.com
Tue Jun 8 11:41:31 UTC 2010


#13535: get_query_var() not working as expected.
--------------------------------------+-------------------------------------
 Reporter:  pmdci                     |        Owner:  ryan    
     Type:  defect (bug)              |       Status:  reopened
 Priority:  normal                    |    Milestone:  3.0     
Component:  Query                     |      Version:  3.0     
 Severity:  major                     |   Resolution:          
 Keywords:  post_types get_query_var  |  
--------------------------------------+-------------------------------------
Changes (by scribu):

  * keywords:  post_Type, get_query_var, is_single => post_types
               get_query_var


Comment:

 I think get_query_var() should always return a value (either explicit or
 inferred).

 Then there should be another method like get_explicit_query_var() that is
 basically a getter for $wp_query->query.

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


More information about the wp-trac mailing list