Skip to:
Content

bbPress.org


Ignore:
Timestamp:
08/10/2020 07:32:04 PM (4 months ago)
Author:
xknown
Message:

PHP 7.4 Compat: remove deprecated functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.1/bb-includes/functions.bb-template.php

    r7110 r7113  
    15161516        $user_id = bb_get_current_user_info( 'id' );
    15171517        if ( isset($topic->bozos[$user_id]) && 'all' != @$_GET['view'] )
    1518             add_filter('get_topic_deleted_posts', create_function('$a', "\$a -= {$topic->bozos[$user_id]}; return \$a;") );
     1518            add_filter('get_topic_deleted_posts', function( $a ) use ($topic, $user_id) { $a -= $topic->bozos[$user_id]; return $a; } );
    15191519        if ( $deleted = get_topic_deleted_posts( $id ) ) {
    15201520            $extra = sprintf(__('+%d more'), $deleted);
Note: See TracChangeset for help on using the changeset viewer.