[wp-trac] [WordPress Trac] #38886: REST API: Mark comment type as readonly

WordPress Trac noreply at wordpress.org
Mon Nov 21 22:55:35 UTC 2016


#38886: REST API: Mark comment type as readonly
--------------------------+--------------------------
 Reporter:  jnylen0       |       Owner:  rachelbaker
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  4.7
Component:  REST API      |     Version:  trunk
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:
--------------------------+--------------------------
Changes (by rachelbaker):

 * owner:   => rachelbaker
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"39337"]:
 {{{
 #!CommitTicketReference repository="" revision="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.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38886#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list