Skip to:
Content

bbPress.org


Ignore:
Timestamp:
06/01/2017 09:24:09 PM (7 years ago)
Author:
johnjamesjacoby
Message:

Moderators: Trim usernames after they're exploded.

Resolves an issue where spaces in the comma separated usernames field would result in skipping that user.

Fixes #3097.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/users/functions.php

    r6438 r6454  
    625625            : (array) $user_nicenames;
    626626
     627        // Trim spaces off of nicenames
     628        $user_nicenames = array_map( 'trim', $user_nicenames );
     629
    627630        // Get users
    628631        $users = get_users( array(
Note: See TracChangeset for help on using the changeset viewer.