[wp-trac] [WordPress Trac] #43744: `WP_REST_Server::EDITABLE` should not contain POST

WordPress Trac noreply at wordpress.org
Thu Apr 12 09:29:00 UTC 2018


#43744: `WP_REST_Server::EDITABLE` should not contain POST
--------------------------+-----------------------------
 Reporter:  soulseekah    |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  REST API      |    Version:
 Severity:  trivial       |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Editable != creatable. The POST method is used to create resources, not
 update them.

 I am unable to use `WP_REST_Server::EDITABLE` at all.

 Also, can these be arrays? Would be cool to do `array_merge`, `array_diff`
 on these definitions.

 Thoughts?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/43744>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list