Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/17/2023 11:14:06 AM (16 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-messages/bp-messages-widgets.php

    r13153 r13481  
    66 * @subpackage MessagesWidgets
    77 * @since 1.9.0
     8 * @deprecated 12.0.0
    89 */
    910
     
    1112defined( 'ABSPATH' ) || exit;
    1213
    13 /**
    14  * Registers the Sitewide Notices Legacy Widget.
    15  *
    16  * @since 10.0.0
    17  */
    18 function bp_messages_register_sitewide_notices_widget() {
    19     register_widget( 'BP_Messages_Sitewide_Notices_Widget' );
    20 }
    21 
    22 /**
    23  * Register widgets for the Messages component.
    24  *
    25  * @since 1.9.0
    26  */
    27 function bp_messages_register_widgets() {
    28     add_action( 'widgets_init', 'bp_messages_register_sitewide_notices_widget' );
    29 }
    30 add_action( 'bp_register_widgets', 'bp_messages_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.