Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#38886 closed defect (bug) (fixed)

REST API: Mark comment type as readonly

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

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

Download all attachments as: .zip

Change History (5)

@jnylen0
10 years ago

#1 @jnylen0
10 years ago

  • Component General → REST API

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


10 years ago

#3 @swissspidy
10 years ago

  • Milestone Awaiting Review → 4.7

#4 @rachelbaker
10 years ago

  • Owner set to rachelbaker
  • Resolution → fixed
  • Status new → 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.