Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/02/2017 08:13:14 PM (7 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/bp-activity-functions.php

    r11356 r11366  
    37513751    buddypress()->activity->read_more_id = $activity->id;
    37523752
    3753     add_filter( 'embed_post_id',         create_function( '', 'return buddypress()->activity->read_more_id;' ) );
     3753    add_filter( 'embed_post_id',         function() { return buddypress()->activity->read_more_id; } );
    37543754    add_filter( 'bp_embed_get_cache',    'bp_embed_activity_cache',      10, 3 );
    37553755    add_action( 'bp_embed_update_cache', 'bp_embed_activity_save_cache', 10, 3 );
Note: See TracChangeset for help on using the changeset viewer.