Skip to:
Content

BuddyPress.org

Changeset 11663


Ignore:
Timestamp:
08/04/2017 02:34:23 PM (2 years ago)
Author:
djpaul
Message:

Members: improve bp_is_user_spammer() performance when used in Member loops.

Fixes #7478

Props sbrajesh

File:
1 edited

Legend:

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

    r11630 r11663  
    982982            $user = ! empty( $bp->displayed_user->userdata ) ? $bp->displayed_user->userdata : false;
    983983            break;
     984
     985        case bp_get_member_user_id() :
     986            global $members_template;
     987            $user = isset( $members_template ) && isset( $members_template->member ) ? $members_template->member :  false;
     988            break;
    984989    }
    985990
Note: See TracChangeset for help on using the changeset viewer.