Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/01/2024 04:59:14 PM (6 months ago)
Author:
espellcaste
Message:

PHPDoc: Update incorrect instances of void.

Closes https://github.com/buddypress/buddypress/pull/302
See #9164

File:
1 edited

Legend:

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

    r13112 r13882  
    1212 *
    1313 * @since 2.2.0
    14  *
    15  * @return false|void
    1614 */
    1715function bp_notifications_action_bulk_manage() {
     
    1917    // Bail if not the read or unread screen.
    2018    if ( ! bp_is_notifications_component() || ! ( bp_is_current_action( 'read' ) || bp_is_current_action( 'unread' ) ) ) {
    21         return false;
     19        return;
    2220    }
    2321
     
    2927    // Bail if no action or no IDs.
    3028    if ( ( ! in_array( $action, array( 'delete', 'read', 'unread' ), true ) ) || empty( $notifications ) || empty( $nonce ) ) {
    31         return false;
     29        return;
    3230    }
    3331
     
    3533    if ( ! wp_verify_nonce( $nonce, 'notifications_bulk_nonce' ) ) {
    3634        bp_core_add_message( __( 'There was a problem managing your notifications.', 'buddypress' ), 'error' );
    37         return false;
     35        return;
    3836    }
    3937
Note: See TracChangeset for help on using the changeset viewer.