Skip to:
Content

BuddyPress.org

Changeset 8583


Ignore:
Timestamp:
07/10/2014 07:08:44 PM (5 years ago)
Author:
johnjamesjacoby
Message:

Remove function_exists() check for get_current_screen() since it was introduced in 3.1 and BuddyPress requires 3.6 or higher.

File:
1 edited

Legend:

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

    r8582 r8583  
    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 
    11471142        // Bail if not on a users page
    1148         if ( $this->users_page !== get_current_screen()->id ) {
     1143        if ( get_current_screen() && ( $this->users_page !== get_current_screen()->id ) ) {
    11491144            return;
    11501145        }
Note: See TracChangeset for help on using the changeset viewer.