Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/05/2014 10:37:06 PM (11 years ago)
Author:
imath
Message:

Make sure the current administration screen ID is set before checking its value

In BP_Members_Admin->remove_signups_from_user_query(), to avoid a notice error, we need to check that get_current_screen()->id is set.

Props boonebgorges

Fixes #5843

File:
1 edited

Legend:

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

    r8958 r8984  
    11501150        }
    11511151
     1152        // Get current screen
     1153        $current_screen = get_current_screen();
     1154
    11521155        // Bail if not on a users page
    1153         if ( $this->users_page !== get_current_screen()->id ) {
     1156        if ( ! isset( $current_screen->id ) || $this->users_page !== $current_screen->id ) {
    11541157            return;
    11551158        }
Note: See TracChangeset for help on using the changeset viewer.