[wp-trac] [WordPress Trac] #33856: Incomplete documentation for `get_query_var()`

WordPress Trac noreply at wordpress.org
Mon Sep 14 06:47:11 UTC 2015


#33856: Incomplete documentation for `get_query_var()`
--------------------------+-----------------------------
 Reporter:  swissspidy    |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  3.9
 Severity:  normal        |   Keywords:  has-patch
  Focuses:  docs          |
--------------------------+-----------------------------
 Since WordPress 3.9, the `get_query_var()` function (and therefore
 `WP_Query::get()`) accepts an optional `$default` parameter.

 This change, however, is not documented in the docblock, which just caused
 me some debugging pain.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33856>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list