Make WordPress Core

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)

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

Download all attachments as: .zip

Change History (2)

@ramiy
10 years ago

#1 @SergeyBiryukov
10 years ago

  • Milestone Awaiting Review
  • Resolutionduplicate
  • Status newclosed

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

Note: See TracTickets for help on using tickets.