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-legacy/buddypress-functions.php

    r11725 r11773  
    16121612
    16131613        // Add new-message css class.
    1614         add_filter( 'bp_get_the_thread_message_css_class', create_function( '$retval', '
    1615             $retval[] = "new-message";
     1614        add_filter( 'bp_get_the_thread_message_css_class', function( $retval ) {
     1615            $retval[] = 'new-message';
    16161616            return $retval;
    1617         ' ) );
     1617        } );
    16181618
    16191619        // Output single message template part.
Note: See TracChangeset for help on using the changeset viewer.