Skip to:
Content

BuddyPress.org

Ticket #7478: bp-is-user-spammer-performance.patch

File bp-is-user-spammer-performance.patch, 635 bytes (added by sbrajesh, 3 years ago)
  • src/bp-members/bp-members-functions.php

     
    972972                case bp_displayed_user_id() :
    973973                        $user = ! empty( $bp->displayed_user->userdata ) ? $bp->displayed_user->userdata : false;
    974974                        break;
     975
     976                case bp_get_member_user_id() :
     977                        global $members_template;
     978                        $user = isset( $members_template ) && isset( $members_template->member ) ? $members_template->member :  false;
     979                        break;
    975980        }
    976981
    977982        // Manually get userdata if still empty.