Skip to content
Permalink
Browse files

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
  • Loading branch information...
SergeyBiryukov committed Aug 25, 2019
1 parent 2e1de73 commit 7ef2679ec747f3e93264bf5a246e8eee70823670
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/wp-admin/users.php
@@ -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 ) );
}
/**

0 comments on commit 7ef2679

Please sign in to comment.
You can’t perform that action at this time.