Text Changes: Unify two more permission error messages.
Props ramiy. Fixes #38158. See #34521. git-svn-id: https://develop.svn.wordpress.org/trunk@38666 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
01e8552fd6
commit
36e22efdfd
@ -2015,7 +2015,7 @@ function wp_ajax_upload_attachment() {
|
||||
echo wp_json_encode( array(
|
||||
'success' => false,
|
||||
'data' => array(
|
||||
'message' => __( "You don't have permission to attach files to this post." ),
|
||||
'message' => __( 'Sorry, you are not allowed to attach files to this post.' ),
|
||||
'filename' => $_FILES['async-upload']['name'],
|
||||
)
|
||||
) );
|
||||
|
@ -382,7 +382,7 @@ case 'remove':
|
||||
echo "<li>" . sprintf(__('ID #%1$s: %2$s <strong>The current user will not be removed.</strong>'), $id, $user->user_login) . "</li>\n";
|
||||
} elseif ( !current_user_can('remove_user', $id) ) {
|
||||
/* translators: 1: user id, 2: user login */
|
||||
echo "<li>" . sprintf(__('ID #%1$s: %2$s <strong>You don’t have permission to remove this user.</strong>'), $id, $user->user_login) . "</li>\n";
|
||||
echo "<li>" . sprintf(__('ID #%1$s: %2$s <strong>Sorry, you are not allowed to remove this user.</strong>'), $id, $user->user_login) . "</li>\n";
|
||||
} else {
|
||||
/* translators: 1: user id, 2: user login */
|
||||
echo "<li><input type=\"hidden\" name=\"users[]\" value=\"{$id}\" />" . sprintf(__('ID #%1$s: %2$s'), $id, $user->user_login) . "</li>\n";
|
||||
|
Loading…
Reference in New Issue
Block a user