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-core/admin/bp-core-admin-tools.php

    r11014 r11366  
    358358    $message = '<div id="message" class="' . esc_attr( $class ) . '">' . $message . '</div>';
    359359    $message = str_replace( "'", "\'", $message );
    360     $lambda  = create_function( '', "echo '$message';" );
     360    $lambda  = function() use ( $message ) { echo $message; };
    361361
    362362    add_action( bp_core_do_network_admin() ? 'network_admin_notices' : 'admin_notices', $lambda );
Note: See TracChangeset for help on using the changeset viewer.