X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/784f914b1e4b1c62d6657e86397c2e83bcee4295..febc815b2c9d85be5717da9e8d164bd2daa97e31:/wp-admin/user-edit.php diff --git a/wp-admin/user-edit.php b/wp-admin/user-edit.php index 04c19fb4..aa6ed7f5 100644 --- a/wp-admin/user-edit.php +++ b/wp-admin/user-edit.php @@ -60,7 +60,7 @@ $wp_http_referer = remove_query_arg( array( 'update', 'delete_count', 'user_id' $user_can_edit = current_user_can( 'edit_posts' ) || current_user_can( 'edit_pages' ); /** - * Filter whether to allow administrators on Multisite to edit every user. + * Filters whether to allow administrators on Multisite to edit every user. * * Enabling the user editing form via this filter also hinges on the user holding * the 'manage_network_users' cap, and the logged-in user not matching the user @@ -77,7 +77,7 @@ if ( is_multisite() && $user_id != $current_user->ID && ! apply_filters( 'enable_edit_any_user_configuration', true ) ) { - wp_die( __( 'You do not have permission to edit this user.' ) ); + wp_die( __( 'Sorry, you are not allowed to edit this user.' ) ); } // Execute confirmed email change. See send_confirmation_on_profile_email(). @@ -110,7 +110,7 @@ case 'update': check_admin_referer('update-user_' . $user_id); if ( !current_user_can('edit_user', $user_id) ) - wp_die(__('You do not have permission to edit this user.')); + wp_die(__('Sorry, you are not allowed to edit this user.')); if ( IS_PROFILE_PAGE ) { /** @@ -163,7 +163,7 @@ default: $profileuser = get_user_to_edit($user_id); if ( !current_user_can('edit_user', $user_id) ) - wp_die(__('You do not have permission to edit this user.')); + wp_die(__('Sorry, you are not allowed to edit this user.')); $sessions = WP_Session_Tokens::get_instance( $profileuser->ID ); @@ -426,7 +426,7 @@ if ( is_multisite() && is_network_admin() && ! IS_PROFILE_PAGE && current_user_c