WordPress.org

Make WordPress Core

#38886 closed defect (bug) (fixed)

REST API: Mark comment type as readonly

Reported by: jnylen0 Owned by: rachelbaker
Milestone: 4.7 Priority: normal
Severity: normal Version: 4.7
Component: REST API Keywords: has-patch
Focuses: Cc:

Description

After #38820 it is no longer possible to update a comment's type. Let's make sure this parameter is documented as readonly.

Attachments (1)

38886.diff (733 bytes) - added by jnylen0 12 months ago.

Download all attachments as: .zip

Change History (5)

@jnylen0
12 months ago

#1 @jnylen0
12 months ago

  • Component changed from General to REST API

This ticket was mentioned in Slack in #core-restapi by jnylen. View the logs.


12 months ago

#3 @swissspidy
12 months ago

  • Milestone changed from Awaiting Review to 4.7

#4 @rachelbaker
12 months ago

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

In 39337:

REST API: Set the comment type to a readonly property in the schema.

Document the type property as readonly and remove the default value. After #38820 it is no longer possible to set the type property on a comment to anything a custom type.

Props jnylen0, rachelbaker.
Fixes #38886.

Note: See TracTickets for help on using tickets.