Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#38886 closed defect (bug) (fixed)

REST API: Mark comment type as readonly

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


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 8 years ago.

Download all attachments as: .zip

Change History (5)

8 years ago

#1 @jnylen0
8 years ago

  • Component changed from General to REST API

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

8 years ago

#3 @swissspidy
8 years ago

  • Milestone changed from Awaiting Review to 4.7

#4 @rachelbaker
8 years 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.