Skip to:
Content

BuddyPress.org

Changeset 8679


Ignore:
Timestamp:
07/23/2014 06:48:11 PM (5 years ago)
Author:
djpaul
Message:

Reverting r8583 as it causes fatal errors when switching themes.

Fixes #5776

File:
1 edited

Legend:

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

    r8677 r8679  
    11401140        }
    11411141
     1142        // Bail if there is no current admin screen
     1143        if ( ! function_exists( 'get_current_screen' ) || ! get_current_screen() ) {
     1144            return;
     1145        }
     1146
    11421147        // Bail if not on a users page
    1143         if ( get_current_screen() && ( $this->users_page !== get_current_screen()->id ) ) {
     1148        if ( $this->users_page !== get_current_screen()->id ) {
    11441149            return;
    11451150        }
Note: See TracChangeset for help on using the changeset viewer.