Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/23/2021 02:03:02 AM (3 years ago)
Author:
espellcaste
Message:

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

See #8553

File:
1 edited

Legend:

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

    r13034 r13091  
    11<?php
    22/**
    3  * Notifications: Delete action handler
     3 * Notifications: Delete action handler.
    44 *
    55 * @package BuddyPress
     
    2323
    2424    // 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'] : '';
    2828
    2929    // Bail if no action or no ID.
     
    3434    // Check the nonce and delete the notification.
    3535    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' ) );
    3737    } else {
    3838        bp_core_add_message( __( 'There was a problem deleting that notification.', 'buddypress' ), 'error' );
Note: See TracChangeset for help on using the changeset viewer.