Make WordPress Core

Changeset 39312


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

Text Changes: Merge strings referring to list_users capability.

See #38857.

Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/users.php

    r39308 r39312  
    1414    wp_die(
    1515        '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
    16         '<p>' . __( 'Sorry, you are not allowed to browse users.' ) . '</p>',
     16        '<p>' . __( 'Sorry, you are not allowed to list users.' ) . '</p>',
    1717        403
    1818    );
  • trunk/src/wp-includes/class-wp-xmlrpc-server.php

    r39278 r39312  
    24772477
    24782478        if ( ! current_user_can( 'list_users' ) )
    2479             return new IXR_Error( 401, __( 'Sorry, you are not allowed to browse users.' ) );
     2479            return new IXR_Error( 401, __( 'Sorry, you are not allowed to list users.' ) );
    24802480
    24812481        $query = array( 'fields' => 'all_with_meta' );
  • 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.