[wp-trac] [WordPress Trac] #50388: REST API: Add action-delete flag to declare delete_post capability for post objects

WordPress Trac noreply at wordpress.org
Sun Jun 14 18:58:47 UTC 2020


#50388: REST API: Add action-delete flag to declare delete_post capability for post
objects
-------------------------+--------------------
 Reporter:  ocean90      |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  5.5
Component:  REST API     |    Version:
 Severity:  normal       |   Keywords:
  Focuses:  rest-api     |
-------------------------+--------------------
 Previously: #44287

 To allow REST API clients to display a delete link for posts in their UI
 based on current user's capabilities we should provide an `action-delete`
 flag similar to the existing actions like `action-publish`.

 One consumer would be the block editor as reported in
 https://github.com/WordPress/gutenberg/issues/23144.

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


More information about the wp-trac mailing list