Changeset 13091 for trunk/src/bp-notifications/actions/delete.php
- Timestamp:
- 08/23/2021 02:03:02 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-notifications/actions/delete.php
r13034 r13091 1 1 <?php 2 2 /** 3 * Notifications: Delete action handler 3 * Notifications: Delete action handler. 4 4 * 5 5 * @package BuddyPress … … 23 23 24 24 // Get the action. 25 $action = ! empty( $_GET['action'] ) ? $_GET['action'] : '';26 $nonce = ! empty( $_GET['_wpnonce'] ) ? $_GET['_wpnonce'] : '';27 $id = ! empty( $_GET['notification_id'] ) ? $_GET['notification_id'] : '';25 $action = ! empty( $_GET['action'] ) ? $_GET['action'] : ''; 26 $nonce = ! empty( $_GET['_wpnonce'] ) ? $_GET['_wpnonce'] : ''; 27 $id = ! empty( $_GET['notification_id'] ) ? $_GET['notification_id'] : ''; 28 28 29 29 // Bail if no action or no ID. … … 34 34 // Check the nonce and delete the notification. 35 35 if ( bp_verify_nonce_request( 'bp_notification_delete_' . $id ) && bp_notifications_delete_notification( $id ) ) { 36 bp_core_add_message( __( 'Notification successfully deleted.', 'buddypress' ));36 bp_core_add_message( __( 'Notification successfully deleted.', 'buddypress' ) ); 37 37 } else { 38 38 bp_core_add_message( __( 'There was a problem deleting that notification.', 'buddypress' ), 'error' );
Note: See TracChangeset
for help on using the changeset viewer.