Skip to:
Content

BuddyPress.org

Changeset 8303


Ignore:
Timestamp:
04/21/2014 07:12:11 PM (11 years ago)
Author:
imath
Message:

Check get_current_screen() is available before using it

In non multisite configs, to avoid displaying the signups (user_status set to 2) into the users administration screen, a filter to the user query is applyed after checking the current screen is the users one. It appears to be problematic on some configs. So we need to check the function get_current_screen() exists just before using it.

see #5551

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/bp-members/bp-members-admin.php

    r8272 r8303  
    823823        }
    824824
     825        if ( ! function_exists( 'get_current_screen' ) ) {
     826            return;
     827        }
     828
    825829        if ( $this->users_page != get_current_screen()->id ) {
    826830            return;
Note: See TracChangeset for help on using the changeset viewer.