mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Text Changes: Merge and clarify some permission error strings in the admin.
See #38857. git-svn-id: https://develop.svn.wordpress.org/trunk@39308 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -94,7 +94,7 @@ case 'promote':
|
||||
check_admin_referer('bulk-users');
|
||||
|
||||
if ( ! current_user_can( 'promote_users' ) )
|
||||
wp_die( __( 'Sorry, you are not allowed to edit that user.' ) );
|
||||
wp_die( __( 'Sorry, you are not allowed to edit this user.' ) );
|
||||
|
||||
if ( empty($_REQUEST['users']) ) {
|
||||
wp_redirect($redirect);
|
||||
@@ -119,7 +119,7 @@ case 'promote':
|
||||
$id = (int) $id;
|
||||
|
||||
if ( ! current_user_can('promote_user', $id) )
|
||||
wp_die(__('Sorry, you are not allowed to edit that user.'));
|
||||
wp_die(__('Sorry, you are not allowed to edit this user.'));
|
||||
// The new role of the current user must also have the promote_users cap or be a multisite super admin
|
||||
if ( $id == $current_user->ID && ! $wp_roles->role_objects[ $role ]->has_cap('promote_users')
|
||||
&& ! ( is_multisite() && is_super_admin() ) ) {
|
||||
|
||||
Reference in New Issue
Block a user