Make WordPress Core


Ignore:
Timestamp:
03/06/2026 02:18:36 PM (5 months ago)
Author:
audrasjb
Message:

Administration: Improve the error message sent when bulk role change skips the current user.

This changeset clarifies the error message displayed when the current user tries to change their role to one that does not allow managing other users.

Props dpknauss, audrasjb, huzaifaalmesbah, noruzzaman, r1k0.
Fixes #64690.

File:
1 edited

Legend:

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

    r61444 r61854  
    684684                                case 'err_admin_role':
    685685                                        $messages[] = wp_get_admin_notice(
    686                                                 __( 'The current user’s role must have user editing capabilities.' ),
     686                                                __( 'You cannot change your own role to one that does not allow managing other users. Your role was not changed.' ),
    687687                                                array(
    688688                                                        'id'                 => 'message',
Note: See TracChangeset for help on using the changeset viewer.