Skip to:
Content

bbPress.org


Ignore:
Timestamp:
06/01/2017 09:33:35 PM (8 years ago)
Author:
johnjamesjacoby
Message:

Moderators: Prefer sanitize_title over trim. See #3097.

File:
1 edited

Legend:

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

    r6454 r6455  
    625625            : (array) $user_nicenames;
    626626
    627         // Trim spaces off of nicenames
    628         $user_nicenames = array_map( 'trim', $user_nicenames );
     627        // Sanitize each nicename in the array
     628        $user_nicenames = array_map( 'sanitize_title', $user_nicenames );
    629629
    630630        // Get users
Note: See TracChangeset for help on using the changeset viewer.