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/bulk-manage.php

    r13034 r13091  
    11<?php
    22/**
    3  * Notifications: Bulk-manage action handler
     3 * Notifications: Bulk-manage action handler.
    44 *
    55 * @package BuddyPress
     
    2828
    2929    // Bail if no action or no IDs.
    30     if ( ( ! in_array( $action, array( 'delete', 'read', 'unread' ) ) ) || empty( $notifications ) || empty( $nonce ) ) {
     30    if ( ( ! in_array( $action, array( 'delete', 'read', 'unread' ), true ) ) || empty( $notifications ) || empty( $nonce ) ) {
    3131        return false;
    3232    }
     
    4242    // Delete, mark as read or unread depending on the user 'action'.
    4343    switch ( $action ) {
    44         case 'delete' :
     44        case 'delete':
    4545            foreach ( $notifications as $notification ) {
    4646                bp_notifications_delete_notification( $notification );
    4747            }
    4848            bp_core_add_message( __( 'Notifications deleted.', 'buddypress' ) );
    49         break;
     49            break;
    5050
    51         case 'read' :
     51        case 'read':
    5252            foreach ( $notifications as $notification ) {
    5353                bp_notifications_mark_notification( $notification, false );
    5454            }
    5555            bp_core_add_message( __( 'Notifications marked as read', 'buddypress' ) );
    56         break;
     56            break;
    5757
    58         case 'unread' :
     58        case 'unread':
    5959            foreach ( $notifications as $notification ) {
    6060                bp_notifications_mark_notification( $notification, true );
    6161            }
    6262            bp_core_add_message( __( 'Notifications marked as unread.', 'buddypress' ) );
    63         break;
     63            break;
    6464    }
    6565
Note: See TracChangeset for help on using the changeset viewer.