Changeset 11366 for trunk/src/bp-blogs/bp-blogs-widgets.php
- Timestamp:
- 01/02/2017 08:13:14 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-blogs/bp-blogs-widgets.php
r11360 r11366 18 18 19 19 if ( bp_is_active( 'activity' ) && bp_is_root_blog( $wpdb->blogid ) ) { 20 add_action( 'widgets_init', create_function( '', 'return register_widget("BP_Blogs_Recent_Posts_Widget");' ));20 add_action( 'widgets_init', function() { register_widget( 'BP_Blogs_Recent_Posts_Widget' ); } ); 21 21 } 22 22 }
Note: See TracChangeset
for help on using the changeset viewer.