Opened 10 years ago
Closed 10 years ago
#38859 closed defect (bug) (duplicate)
REST API: Clarify error messages with edit context
| Reported by: | ramiy | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | I18N | Version: | 4.7 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: | rest-api |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Thanks for the ticket! Let's handle this in #38857.