WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/25/2019 08:02:31 PM (2 months ago)
Author:
SergeyBiryukov
Message:

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

Props kbrownkd.
Fixes #47936.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/users.php

    r45806 r45890  
    235235        }
    236236
     237        $all_userids = $userids;
     238
    237239        if ( in_array( $current_user->ID, $userids ) ) {
    238             $all_userids = $userids;
    239             $userids     = array_diff( $userids, array( $current_user->ID ) );
     240            $userids = array_diff( $userids, array( $current_user->ID ) );
    240241        }
    241242
Note: See TracChangeset for help on using the changeset viewer.