Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/26/2021 12:53:27 AM (3 years ago)
Author:
espellcaste
Message:

Making PHPDoc Improvements to the BP Messages (component) files.

Also, adding several minor PHP changes.

See #8553

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-messages/actions/delete.php

    r11925 r13096  
    11<?php
    22/**
    3  * Messages: Delete action handler
     3 * Messages: Delete action handler.
    44 *
    55 * @package BuddyPress
     
    2121    $thread_id = bp_action_variable( 1 );
    2222
    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 ) ) {
    2424        bp_core_redirect( trailingslashit( bp_displayed_user_domain() . bp_get_messages_slug() . '/' . bp_current_action() ) );
    2525    } else {
     
    2929
    3030        // Delete message.
    31         if ( !messages_delete_thread( $thread_id ) ) {
     31        if ( ! messages_delete_thread( $thread_id ) ) {
    3232            bp_core_add_message( __('There was an error deleting that message.', 'buddypress'), 'error' );
    3333        } else {
Note: See TracChangeset for help on using the changeset viewer.