Skip to:
Content

bbPress.org


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

PHP 7.4 Compat: Replace the deprecated create_function calls with anonymous functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/0.9/bb-admin/admin-functions.php

    r6160 r7116  
    3535
    3636    $message = "<div class='$class'>$message</div>";
    37     $message = str_replace("'", "\'", $message);
    38     $lambda = create_function( '', "echo '$message';" );
     37    $lambda = function () use ( $message ) { echo $message; };
    3938    add_action( 'bb_admin_notices', $lambda );
    4039    return $lambda;
Note: See TracChangeset for help on using the changeset viewer.