Skip to:
Content

bbPress.org


Ignore:
Timestamp:
08/03/2020 01:33:59 PM (4 months ago)
Author:
xknown
Message:

PHP 7.4 Compat: Remove the create_function calls.

They are deprecated, and they seem to be removed in PHP 8.0.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.1/bb-admin/options-wordpress.php

    r2455 r7111  
    5353
    5454$bb_role_names[''] = _c( 'none|no bbPress role' );
    55 $bb_role_names = array_merge( $bb_role_names, array_map( create_function( '$a', 'return sprintf( _c( "bbPress %s|bbPress role" ), $a );' ), $wp_roles->get_names() ) );
     55$bb_role_names = array_merge( $bb_role_names, array_map( function( $a ) { return sprintf( _c( "bbPress %s|bbPress role" ), $a ); }, $wp_roles->get_names() ) );
    5656
    5757$wpRoles = array(
Note: See TracChangeset for help on using the changeset viewer.