Changeset 13153 for trunk/src/bp-blogs/bp-blogs-widgets.php
- Timestamp:
- 11/19/2021 05:03:56 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-blogs/bp-blogs-widgets.php
r11366 r13153 12 12 13 13 /** 14 * Registers the Recent Posts Legacy Widget. 15 * 16 * @since 10.0.0 17 */ 18 function bp_blogs_register_recent_posts_widget() { 19 register_widget( 'BP_Blogs_Recent_Posts_Widget' ); 20 } 21 22 /** 14 23 * Register the widgets for the Blogs component. 15 24 */ … … 18 27 19 28 if ( bp_is_active( 'activity' ) && bp_is_root_blog( $wpdb->blogid ) ) { 20 add_action( 'widgets_init', function() { register_widget( 'BP_Blogs_Recent_Posts_Widget' ); });29 add_action( 'widgets_init', 'bp_blogs_register_recent_posts_widget' ); 21 30 } 22 31 }
Note: See TracChangeset
for help on using the changeset viewer.