Skip to:
Content

BuddyPress.org

Changeset 13926


Ignore:
Timestamp:
06/13/2024 07:21:48 PM (8 months ago)
Author:
imath
Message:

Avoid the BP Opt-outs Admin screen to be empty

Props emaralive

Fixes #9180

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/admin/bp-core-admin-optouts.php

    r13886 r13926  
    391391
    392392    // Get the IDs from the URL.
    393     $ids = false;
     393    $ids = 0;
    394394    if ( ! empty( $_POST['optout_ids'] ) ) {
    395395        $ids = wp_parse_id_list( $_POST['optout_ids'] );
    396396    } elseif ( ! empty( $_GET['optout_id'] ) ) {
    397397        $ids = absint( $_GET['optout_id'] );
    398     }
    399 
    400     if ( empty( $ids ) ) {
    401         return false;
    402398    }
    403399
Note: See TracChangeset for help on using the changeset viewer.