WordPress.org

Make WordPress Core

Changeset 38656


Ignore:
Timestamp:
09/27/2016 03:26:21 PM (3 years ago)
Author:
jeremyfelt
Message:

Multisite: Replace die() with wp_die() in site users list table.

wp_die() is available and appropriate when checking capabilities while processing list table actions.

Props imath.
Fixes 38151.

File:
1 edited

Legend:

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

    r38647 r38656  
    118118
    119119        case 'remove':
    120             if ( ! current_user_can( 'remove_users' )  )
    121                 die(__('You can’t remove users.'));
     120            if ( ! current_user_can( 'remove_users' ) ) {
     121                wp_die( __( 'You can’t remove users.' ) );
     122            }
     123
    122124            check_admin_referer( 'bulk-users' );
    123125
Note: See TracChangeset for help on using the changeset viewer.