"Move to Trash" button doesn't respect 'delete_post' capability #14828
Labels
Backwards Compatibility
Issues or PRs that impact backwards compatability
[Feature] Document Settings
Document settings experience
REST API Interaction
Related to REST API
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Describe the bug
When a user cannot delete a post (as defined by the
delete_post
meta capability), the "Move to Trash" button still displays. My expectation is that the "Move to Trash" button wouldn't display.To reproduce
Suggested fix
Similar to the work done for #6361, we'll need to create some new
wp:action-delete
JSON Hyper SchematargetSchema
response data for posts.After this, the
PostTrash
component in@wordpress/editor
will need to be updated to respect the presence of thewp:action-delete
metadata.The text was updated successfully, but these errors were encountered: