Users: Adjust [45806] to make sure $all_userids is always defined.

Props kbrownkd.
Fixes #47936.
Built from https://develop.svn.wordpress.org/trunk@45890


git-svn-id: http://core.svn.wordpress.org/trunk@45701 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2019-08-25 20:03:57 +00:00
parent c896a0911e
commit fe0b22cd67
2 changed files with 4 additions and 3 deletions

View File

@ -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 ) );
}
/**

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.3-alpha-45889';
$wp_version = '5.3-alpha-45890';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.