WordPress.org

Make WordPress Core

Opened 4 months ago

Closed 4 months ago

#38963 closed defect (bug) (fixed)

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

Reported by: Shelob9 Owned by: 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 4 months ago.

Download all attachments as: .zip

Change History (4)

@Shelob9
4 months ago

#1 @Shelob9
4 months ago

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

#2 @boonebgorges
4 months ago

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

Good catch. Thanks for the patch.

#3 @boonebgorges
4 months 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.