Skip to content

Commit

Permalink
Users: Adjust [45806] to make sure $all_userids is always defined.
Browse files Browse the repository at this point in the history
Props kbrownkd.
Fixes #47936.

git-svn-id: https://develop.svn.wordpress.org/trunk@45890 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
SergeyBiryukov committed Aug 25, 2019
1 parent 2e1de73 commit 7ef2679
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/wp-admin/users.php
Expand Up @@ -234,9 +234,10 @@
$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 ) );
}

/**
Expand Down

0 comments on commit 7ef2679

Please sign in to comment.