mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
Text Changes: Merge strings referring to list_users
capability.
See #38857. Built from https://develop.svn.wordpress.org/trunk@39312 git-svn-id: http://core.svn.wordpress.org/trunk@39252 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
518fc0a05b
commit
dca7d8d0ea
@ -13,7 +13,7 @@ require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
if ( ! current_user_can( 'list_users' ) ) {
|
||||
wp_die(
|
||||
'<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' .
|
||||
'<p>' . __( 'Sorry, you are not allowed to browse users.' ) . '</p>',
|
||||
'<p>' . __( 'Sorry, you are not allowed to list users.' ) . '</p>',
|
||||
403
|
||||
);
|
||||
}
|
||||
|
@ -2476,7 +2476,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
do_action( 'xmlrpc_call', 'wp.getUsers' );
|
||||
|
||||
if ( ! current_user_can( 'list_users' ) )
|
||||
return new IXR_Error( 401, __( 'Sorry, you are not allowed to browse users.' ) );
|
||||
return new IXR_Error( 401, __( 'Sorry, you are not allowed to list users.' ) );
|
||||
|
||||
$query = array( 'fields' => 'all_with_meta' );
|
||||
|
||||
|
@ -148,7 +148,7 @@ class WP_REST_Users_Controller extends WP_REST_Controller {
|
||||
}
|
||||
|
||||
if ( 'edit' === $request['context'] && ! current_user_can( 'list_users' ) ) {
|
||||
return new WP_Error( 'rest_forbidden_context', __( 'Sorry, you are not allowed to edit users.' ), array( 'status' => rest_authorization_required_code() ) );
|
||||
return new WP_Error( 'rest_forbidden_context', __( 'Sorry, you are not allowed to list users.' ), array( 'status' => rest_authorization_required_code() ) );
|
||||
}
|
||||
|
||||
if ( in_array( $request['orderby'], array( 'email', 'registered_date' ), true ) && ! current_user_can( 'list_users' ) ) {
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.7-beta4-39311';
|
||||
$wp_version = '4.7-beta4-39312';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user