Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/17/2023 11:14:06 AM (22 months ago)
Author:
imath
Message:

Deprecate BP Legacy widgets

Deprecate all classes, functions, JavaScripts and files related to Legacy Widgets. Legacy Widgets are now available from the BP Classic plugin.

See #8869
Closes https://github.com/buddypress/buddypress/pull/99

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-blogs/bp-blogs-widgets.php

    r13153 r13481  
    66 * @subpackage BlogsWidgets
    77 * @since 1.0.0
     8 * @deprecated 12.0.0
    89 */
    910
     
    1112defined( 'ABSPATH' ) || exit;
    1213
    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.