Opened 9 years ago
Closed 9 years ago
#38859 closed defect (bug) (duplicate)
REST API: Clarify error messages with edit context
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.7 |
Component: | I18N | Keywords: | |
Focuses: | rest-api | Cc: |
Description
The following methods:
WP_REST_Comments_Controller::get_items_permission_check()
WP_REST_Comments_Controller::get_items_permissions_check()
WP_REST_Taxonomies_Controller::get_items_permissions_check()
WP_REST_Terms_Controller::get_item_permissions_check()
WP_REST_Users_Controller::get_items_permissions_check()
WP_REST_Post_Types_Controller::get_items_permissions_check()
WP_REST_Post_Statuses_Controller::get_items_permissions_check()
They all have a permission error message: "Sorry, you are not allowed to view this resource with edit context."
The error message needs to be clarified for translators. What do you mean with edit context ? The user don't have permission to view or edit the resource/comment ?
Attachments (1)
Change History (2)
Note: See
TracTickets for help on using
tickets.
Thanks for the ticket! Let's handle this in #38857.