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

WordPress Trac wp-trac at lists.automattic.com
Sat May 29 23:25:03 UTC 2010


#13535: get_query_var() not working as expected.
-------------------------------------------------+--------------------------
 Reporter:  pmdci                                |        Owner:  ryan      
     Type:  defect (bug)                         |       Status:  closed    
 Priority:  normal                               |    Milestone:            
Component:  Query                                |      Version:  3.0       
 Severity:  major                                |   Resolution:  worksforme
 Keywords:  post_Type, get_query_var, is_single  |  
-------------------------------------------------+--------------------------
Changes (by nacin):

  * status:  new => closed
  * resolution:  => worksforme
  * milestone:  3.0 =>


Comment:

 Use get_post_type(). post_type isn't always set like other query vars.

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


More information about the wp-trac mailing list