Changeset 13481 for trunk/src/bp-blogs/bp-blogs-widgets.php
- Timestamp:
- 05/17/2023 11:14:06 AM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-blogs/bp-blogs-widgets.php
r13153 r13481 6 6 * @subpackage BlogsWidgets 7 7 * @since 1.0.0 8 * @deprecated 12.0.0 8 9 */ 9 10 … … 11 12 defined( 'ABSPATH' ) || exit; 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 /** 23 * Register the widgets for the Blogs component. 24 */ 25 function bp_blogs_register_widgets() { 26 global $wpdb; 27 28 if ( bp_is_active( 'activity' ) && bp_is_root_blog( $wpdb->blogid ) ) { 29 add_action( 'widgets_init', 'bp_blogs_register_recent_posts_widget' ); 30 } 31 } 32 add_action( 'bp_register_widgets', 'bp_blogs_register_widgets' ); 14 _deprecated_file( basename( __FILE__ ), '12.0.0', '', __( 'BuddyPress does not include Legacy Widgets anymore, you can restore it using the BP Classic plugin', 'buddypress' ) );
Note: See TracChangeset
for help on using the changeset viewer.