Changeset 13112 for trunk/src/bp-notifications/actions/bulk-manage.php
- Timestamp:
- 09/19/2021 03:58:09 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-notifications/actions/bulk-manage.php
r13091 r13112 13 13 * @since 2.2.0 14 14 * 15 * @return bool15 * @return false|void 16 16 */ 17 17 function bp_notifications_action_bulk_manage() { … … 43 43 switch ( $action ) { 44 44 case 'delete': 45 foreach ( $notifications as $notification ) { 46 bp_notifications_delete_notification( $notification ); 47 } 45 bp_notifications_delete_notifications_by_ids( $notifications ); 48 46 bp_core_add_message( __( 'Notifications deleted.', 'buddypress' ) ); 49 47 break; 50 48 51 49 case 'read': 52 foreach ( $notifications as $notification ) { 53 bp_notifications_mark_notification( $notification, false ); 54 } 50 bp_notifications_mark_notifications_by_ids( $notifications, false ); 55 51 bp_core_add_message( __( 'Notifications marked as read', 'buddypress' ) ); 56 52 break; 57 53 58 54 case 'unread': 59 foreach ( $notifications as $notification ) { 60 bp_notifications_mark_notification( $notification, true ); 61 } 55 bp_notifications_mark_notifications_by_ids( $notifications, true ); 62 56 bp_core_add_message( __( 'Notifications marked as unread.', 'buddypress' ) ); 63 57 break;
Note: See TracChangeset
for help on using the changeset viewer.