Changeset 13096 for trunk/src/bp-messages/actions/delete.php
- Timestamp:
- 08/26/2021 12:53:27 AM (4 years ago)
- File:
-
- 1 edited
-
trunk/src/bp-messages/actions/delete.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-messages/actions/delete.php
r11925 r13096 1 1 <?php 2 2 /** 3 * Messages: Delete action handler 3 * Messages: Delete action handler. 4 4 * 5 5 * @package BuddyPress … … 21 21 $thread_id = bp_action_variable( 1 ); 22 22 23 if ( ! $thread_id || !is_numeric( $thread_id ) || !messages_check_thread_access( $thread_id ) ) {23 if ( ! $thread_id || ! is_numeric( $thread_id ) || ! messages_check_thread_access( $thread_id ) ) { 24 24 bp_core_redirect( trailingslashit( bp_displayed_user_domain() . bp_get_messages_slug() . '/' . bp_current_action() ) ); 25 25 } else { … … 29 29 30 30 // Delete message. 31 if ( ! messages_delete_thread( $thread_id ) ) {31 if ( ! messages_delete_thread( $thread_id ) ) { 32 32 bp_core_add_message( __('There was an error deleting that message.', 'buddypress'), 'error' ); 33 33 } else {
Note: See TracChangeset
for help on using the changeset viewer.