Changeset 13882 for trunk/src/bp-notifications/actions/bulk-manage.php
- Timestamp:
- 06/01/2024 04:59:14 PM (6 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-notifications/actions/bulk-manage.php
r13112 r13882 12 12 * 13 13 * @since 2.2.0 14 *15 * @return false|void16 14 */ 17 15 function bp_notifications_action_bulk_manage() { … … 19 17 // Bail if not the read or unread screen. 20 18 if ( ! bp_is_notifications_component() || ! ( bp_is_current_action( 'read' ) || bp_is_current_action( 'unread' ) ) ) { 21 return false;19 return; 22 20 } 23 21 … … 29 27 // Bail if no action or no IDs. 30 28 if ( ( ! in_array( $action, array( 'delete', 'read', 'unread' ), true ) ) || empty( $notifications ) || empty( $nonce ) ) { 31 return false;29 return; 32 30 } 33 31 … … 35 33 if ( ! wp_verify_nonce( $nonce, 'notifications_bulk_nonce' ) ) { 36 34 bp_core_add_message( __( 'There was a problem managing your notifications.', 'buddypress' ), 'error' ); 37 return false;35 return; 38 36 } 39 37
Note: See TracChangeset
for help on using the changeset viewer.