Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/13/2017 01:13:51 AM (4 years ago)
Author:
boonebgorges
Message:

Remove calls to create_function().

create_function() is deprecated in PHP 7.2.

See #7634.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/includes/messages/ajax.php

    r11686 r11773  
    6161
    6262    // Trim @ from usernames
    63     $recipients = apply_filters( 'bp_messages_recipients', array_map( create_function( '$r', "return trim( \$r, '@' );" ), $_POST['send_to'] ) );
     63    $recipients = apply_filters( 'bp_messages_recipients', array_map( function( $username ) {
     64        return trim( $username, '@' );
     65    }, $_POST['send_to'] ) );
    6466
    6567    // Attempt to send the message.
Note: See TracChangeset for help on using the changeset viewer.