Skip to:
Content

BuddyPress.org

Ticket #7325: 7325-forums-anonymous-functions.diff

File 7325-forums-anonymous-functions.diff, 512 bytes (added by tw2113, 3 years ago)
  • src/bp-forums/bp-forums-bbpress-sa.php

    diff --git src/bp-forums/bp-forums-bbpress-sa.php src/bp-forums/bp-forums-bbpress-sa.php
    index 177be59..51f5210 100644
    function bp_forums_load_bbpress() { 
    149149         *
    150150         * @since 1.1.0
    151151         */
    152         register_shutdown_function( create_function( '', 'do_action("bb_shutdown");' ) );
     152        register_shutdown_function( function() { do_action( 'bb_shutdown' ); } );
    153153}
    154154add_action( 'bbpress_init', 'bp_forums_load_bbpress' );
    155155