Users: Adjust [45806] to make sure $all_userids
is always defined.
Props kbrownkd. Fixes #47936. git-svn-id: https://develop.svn.wordpress.org/trunk@45890 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2e1de7309c
commit
7ef2679ec7
@ -234,9 +234,10 @@ switch ( $wp_list_table->current_action() ) {
|
||||
$userids = array_map( 'intval', (array) $_REQUEST['users'] );
|
||||
}
|
||||
|
||||
$all_userids = $userids;
|
||||
|
||||
if ( in_array( $current_user->ID, $userids ) ) {
|
||||
$all_userids = $userids;
|
||||
$userids = array_diff( $userids, array( $current_user->ID ) );
|
||||
$userids = array_diff( $userids, array( $current_user->ID ) );
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user