WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#38859 closed defect (bug) (duplicate)

REST API: Clarify error messages with edit context

Reported by: ramiy 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)

edit-context.png (91.4 KB) - added by ramiy 4 years ago.

Download all attachments as: .zip

Change History (2)

@ramiy
4 years ago

#1 @SergeyBiryukov
4 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Thanks for the ticket! Let's handle this in #38857.

Note: See TracTickets for help on using tickets.