WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/19/2016 02:15:10 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Text Changes: Merge strings referring to list_users capability.

See #38857.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php

    r39309 r39312  
    149149
    150150        if ( 'edit' === $request['context'] && ! current_user_can( 'list_users' ) ) {
    151             return new WP_Error( 'rest_forbidden_context', __( 'Sorry, you are not allowed to edit users.' ), array( 'status' => rest_authorization_required_code() ) );
     151            return new WP_Error( 'rest_forbidden_context', __( 'Sorry, you are not allowed to list users.' ), array( 'status' => rest_authorization_required_code() ) );
    152152        }
    153153
Note: See TracChangeset for help on using the changeset viewer.