Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/13/2024 07:21:48 PM (2 years 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.