Changeset 13481 for trunk/src/bp-messages/bp-messages-widgets.php
- Timestamp:
- 05/17/2023 11:14:06 AM (16 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-messages/bp-messages-widgets.php
r13153 r13481 6 6 * @subpackage MessagesWidgets 7 7 * @since 1.9.0 8 * @deprecated 12.0.0 8 9 */ 9 10 … … 11 12 defined( 'ABSPATH' ) || exit; 12 13 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.