WordPress.org

Make WordPress Core

Changeset 38665


Ignore:
Timestamp:
09/27/2016 11:51:12 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Text Changes: Unify two permission error messages in wp-admin/network/site-users.php.

Props ramiy.
Fixes #38178. See #34521.

File:
1 edited

Legend:

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

    r38657 r38665  
    116116        case 'remove':
    117117            if ( ! current_user_can( 'remove_users' ) ) {
    118                 wp_die( __( 'You can’t remove users.' ) );
     118                wp_die( __( 'Sorry, you are not allowed to remove users.' ) );
    119119            }
    120120
     
    139139            check_admin_referer( 'bulk-users' );
    140140            $editable_roles = get_editable_roles();
    141             if ( empty( $editable_roles[$_REQUEST['new_role']] ) )
    142                 wp_die(__('You can’t give users that role.'));
     141            if ( empty( $editable_roles[ $_REQUEST['new_role'] ] ) ) {
     142                wp_die( __( 'Sorry, you are not allowed to give users that role.' ) );
     143            }
    143144
    144145            if ( isset( $_REQUEST['users'] ) ) {
Note: See TracChangeset for help on using the changeset viewer.