Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/02/2017 08:13:14 PM (8 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-messages/bp-messages-widgets.php

    r11360 r11366  
    1717 */
    1818function bp_messages_register_widgets() {
    19     add_action( 'widgets_init', create_function('', 'return register_widget( "BP_Messages_Sitewide_Notices_Widget" );') );
     19    add_action( 'widgets_init', function() { register_widget( 'BP_Messages_Sitewide_Notices_Widget' ); } );
    2020}
    2121add_action( 'bp_register_widgets', 'bp_messages_register_widgets' );
Note: See TracChangeset for help on using the changeset viewer.