Make WordPress Core

Opened 9 years ago

Closed 8 years ago

Last modified 8 years ago

#41338 closed defect (bug) (fixed)

description of $status parameter in WP_Comment_Query::__construct() is incorrect

Reported by: pbiron Owned by: boonebgorges
Priority: normal Milestone: 5.1
Component: Comments Version: 4.1
Severity: normal Keywords: has-patch
Cc: Focuses: docs

Description

The description of the $status parameter suggests that only a single status can be provided.

However, WP_Comment_Query::get_comment_ids() treats it as an array of stati (either a true array or a space/comma separated list).

The description should be updated to reflect this.

Attachments (1)

41338.diff​ (1.5 KB ) - added by pbiron 9 years ago.
fix description of $status parameter in WP_Comment_Query::construct()

Download all attachments as: .zip

Change History (12)

@pbiron
9 years ago

fix description of $status parameter in WP_Comment_Query::construct()

#1 @pbiron
9 years ago

  • Keywords has-patch added

#2 @pbiron
9 years ago

  • Focuses docs added

#3 @ocean90
9 years ago

  • Milestone Awaiting Review → 5.0
  • Version 4.9 → 4.1

Introduced in [30084].

#4 @boonebgorges
9 years ago

  • Owner set to boonebgorges
  • Resolution → fixed
  • Status new → closed

In 42165:

Correct documentation for status param of WP_Comment_Query.

The status parameter accepts an array or string/comma-separated list.

Introduced in [30084].

Props pbiron.
Fixes #41338.

#5 @johnbillion
8 years ago

  • Milestone 5.0 → 5.0.1
  • Resolution fixed
  • Status closed → reopened

#6 @pento
8 years ago

  • Milestone 5.0.1 → 5.0.2

#7 @pento
8 years ago

  • Milestone 5.0.2 → 5.0.3

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


8 years ago

#9 @audrasjb
8 years ago

  • Milestone 5.0.3 → 5.1

Hi,

Per today's bug scrub, let's address this ticket in the next major, 5.1, scheduled in February.

#10 @SergeyBiryukov
8 years ago

  • Resolution → fixed
  • Status reopened → closed

Fixed in [42165], doesn't look like any additional changes are needed.

#11 @SergeyBiryukov
8 years ago

In 44412:

Docs: Fix typo in the description of status parameter of WP_Comment_Query.

See #41338.

Note: See TracTickets for help on using tickets.