[buddypress-trac] [BuddyPress Trac] #5734: Members loop inside a BP profile only shows friends of the displayed users.
buddypress-trac
noreply at wordpress.org
Thu Jul 3 11:40:06 UTC 2014
#5734: Members loop inside a BP profile only shows friends of the displayed users.
-------------------------+-----------------------
Reporter: CommonEasy | Owner:
Type: enhancement | Status: reopened
Priority: normal | Milestone: 2.1
Component: Members | Version: 1.2.6
Severity: normal | Resolution:
Keywords: has-patch |
-------------------------+-----------------------
Comment (by boonebgorges):
> It might make sense to add these fixes in the BP_Button class instead.
I think this is right. The definition of "self" is different in the
context of a members loop, no matter what the button type. So I think the
logic is:
{{{
global $members_template;
if ( true === $this->block_self ) {
if ( $members_template->in_the_loop && bp_get_member_user_id() ===
bp_loggedin_user_id() ) {
return false;
} else if ( bp_is_my_profile() ) {
return false;
}
}
}}}
Syntax could obviously be simplified :)
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5734#comment:7>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list