Changeset 13153 for trunk/src/bp-messages/bp-messages-widgets.php
- Timestamp:
- 11/19/2021 05:03:56 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-messages/bp-messages-widgets.php
r13096 r13153 12 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 /** 14 23 * Register widgets for the Messages component. 15 24 * … … 17 26 */ 18 27 function bp_messages_register_widgets() { 19 add_action( 20 'widgets_init', 21 function() { 22 register_widget( 'BP_Messages_Sitewide_Notices_Widget' ); 23 } 24 ); 28 add_action( 'widgets_init', 'bp_messages_register_sitewide_notices_widget' ); 25 29 } 26 30 add_action( 'bp_register_widgets', 'bp_messages_register_widgets' );
Note: See TracChangeset
for help on using the changeset viewer.