Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/02/2017 08:13:14 PM (8 years ago)
Author:
tw2113
Message:

Removes usage of create_function across various BuddyPress components.

See #7325.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-activity/classes/class-bp-activity-list-table.php

    r11351 r11366  
    172172
    173173            // Sort the array by the activity object's date_recorded value.
    174             usort( $activities['activities'], create_function( '$a, $b', 'return $a->date_recorded > $b->date_recorded;' ) );
     174            usort( $activities['activities'], function( $a, $b ) { return $a->date_recorded > $b->date_recorded; } );
    175175        }
    176176
Note: See TracChangeset for help on using the changeset viewer.