Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#38963 closed defect (bug) (fixed)

Inline documentation for the $query param of WP_Query::query() are wrong.

Reported by: shelob9's profile Shelob9 Owned by: boonebgorges's profile boonebgorges
Milestone: 4.8 Priority: normal
Severity: normal Version: 1.5
Component: Query Keywords: has-patch
Focuses: docs Cc:

Description

In the WP_Query class, the method query has a parameter $query. It's inline docs indicate it can only be a string. It can be a string or array.

Attachments (1)

38963.diff (484 bytes) - added by Shelob9 8 years ago.

Download all attachments as: .zip

Change History (4)

@Shelob9
8 years ago

#1 @Shelob9
8 years ago

  • Component changed from General to Query
  • Keywords has-patch added

#2 @boonebgorges
8 years ago

  • Focuses docs added
  • Milestone changed from Awaiting Review to 4.8

Good catch. Thanks for the patch.

#3 @boonebgorges
8 years ago

  • Owner set to boonebgorges
  • Resolution set to fixed
  • Status changed from new to closed

In 39550:

Docs: Correct param definition for WP_Query::query().

Props Shelob9.
Fixes #38963.

Note: See TracTickets for help on using tickets.