[wp-trac] [WordPress Trac] #16471: Support default values for non-existant query vars in get_query_var() et al

WordPress Trac noreply at wordpress.org
Sun Feb 2 06:29:58 UTC 2014


#16471: Support default values for non-existant query vars in get_query_var() et al
-------------------------+------------------
 Reporter:  hakre        |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  3.9
Component:  Query        |     Version:  3.0
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+------------------

Comment (by wonderboymusic):

 Can someone add a concrete example of why this matters? I don't see the
 benefit.

 `get_query_var( 'post_type', 9 )` <--- what does that accomplish?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/16471#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list