Make WordPress Core

Opened 5 months ago

Last modified 3 months ago

#63982 assigned defect (bug)

Comment REST API route: add support multiple statuses

Reported by: adamsilverstein's profile adamsilverstein Owned by: adamsilverstein's profile adamsilverstein
Milestone: 7.0 Priority: normal
Severity: normal Version: 5.5
Component: REST API Keywords: has-patch has-unit-tests needs-refresh
Focuses: Cc:

Description

## Description

  • Add support for multiple statuses (an array) to the comments REST API endpoint.
  • The WP_Comment_Query class already supports this, so the only change needed is to allow this parameter to be a string or an array
  • Some unit tests for this would be nice

Change History (3)

#1 @adamsilverstein
5 months ago

  • Component changed from General to REST API

#3 @wildworks
3 months ago

  • Keywords needs-refresh added
  • Milestone changed from 6.9 to 7.0

Since Beta3 is coming soon, I'd like to punt this ticket to 7.0. At the very least, we need to resolve the conflicts in the attached pull request.

Note: See TracTickets for help on using tickets.