Changeset 11366 for trunk/src/bp-groups/bp-groups-widgets.php
- Timestamp:
- 01/02/2017 08:13:14 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/bp-groups-widgets.php
r11360 r11366 17 17 */ 18 18 function groups_register_widgets() { 19 add_action( 'widgets_init', create_function('', 'return register_widget("BP_Groups_Widget");'));19 add_action( 'widgets_init', function() { register_widget( 'BP_Groups_Widget' ); } ); 20 20 } 21 21 add_action( 'bp_register_widgets', 'groups_register_widgets' );
Note: See TracChangeset
for help on using the changeset viewer.