WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/19/2016 01:37:25 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Text Changes: Merge and clarify some permission error strings in the admin.

See #38857.

File:
1 edited

Legend:

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

    r39258 r39308  
    9595
    9696    if ( ! current_user_can( 'promote_users' ) )
    97         wp_die( __( 'Sorry, you are not allowed to edit that user.' ) );
     97        wp_die( __( 'Sorry, you are not allowed to edit this user.' ) );
    9898
    9999    if ( empty($_REQUEST['users']) ) {
     
    120120
    121121        if ( ! current_user_can('promote_user', $id) )
    122             wp_die(__('Sorry, you are not allowed to edit that user.'));
     122            wp_die(__('Sorry, you are not allowed to edit this user.'));
    123123        // The new role of the current user must also have the promote_users cap or be a multisite super admin
    124124        if ( $id == $current_user->ID && ! $wp_roles->role_objects[ $role ]->has_cap('promote_users')
Note: See TracChangeset for help on using the changeset viewer.