From fe0b22cd67bc15c96e1909cdb5e5d584550c2db8 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 25 Aug 2019 20:03:57 +0000 Subject: [PATCH] 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 --- wp-admin/users.php | 5 +++-- wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/wp-admin/users.php b/wp-admin/users.php index 6ca1eb7af9..55dde54f20 100644 --- a/wp-admin/users.php +++ b/wp-admin/users.php @@ -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 ) ); } /** diff --git a/wp-includes/version.php b/wp-includes/version.php index 571bc4a105..d58da358f5 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.