Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#33856 closed defect (bug) (fixed)

Incomplete documentation for `get_query_var()`

Reported by: swissspidy Owned by: DrewAPicture
Priority: normal Milestone: 4.4
Component: Query Version: 3.9
Severity: normal Keywords: has-patch
Cc: Focuses: docs

Description

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.

Attachments (1)

33856.diff​ (1.1 KB ) - added by swissspidy 11 years ago.

Download all attachments as: .zip

Change History (5)

@swissspidy
11 years ago

#1 @swissspidy
11 years ago

  • Component General → Query
  • Milestone Awaiting Review → 4.4

This ticket was mentioned in ​Slack in #core by swissspidy. ​View the logs.


11 years ago

#3 @DrewAPicture
11 years ago

  • Owner set to DrewAPicture
  • Status new → reviewing

#4 @DrewAPicture
11 years ago

  • Resolution → fixed
  • Status reviewing → closed

In 34284:

Docs: Add documentation to get_query_var() and WP_Query::get() for the optional $default argument, introduced in 3.9 in [27304].

Props swissspidy.
Fixes #33856.

Note: See TracTickets for help on using tickets.