[buddypress-trac] [BuddyPress Trac] #6096: Create Group link is not showing up in Twenty Fifteen

buddypress-trac noreply at wordpress.org
Fri Jan 9 14:25:52 UTC 2015


#6096: Create Group link is not showing up in Twenty Fifteen
---------------------------+------------------
 Reporter:  mercime        |       Owner:
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  2.2
Component:  Template Pack  |     Version:
 Severity:  normal         |  Resolution:
 Keywords:  has-patch      |
---------------------------+------------------

Comment (by hnla):

 Further reasoning:

 This 'block_self' arg is designed to prevent showing a button for e.g
 friends on your own members loop entry and as such is set to 'true' by
 default which then runs a check for `bp_get_member_user_id() == true' and
 ==  `bp_loggedin_user_id()` if conditions are met we return false on the
 button creation.

 With group create & blog create buttons this condition of a button
 appearing in ones own loop entry is not a factor the create buttons should
 appear for all only based on capability to create and active components.

 We have rested safe in the knowledge that the initial check after
 block_self true/false `bp_get_member_user_id()` would faithfully return
 false on group/blog dir however that isn't really a valid check as the
 button doesn't render on members loops regardless, in this respect I
 suggest we ought to be passing the optional arg `'block_self' => false,`
 to the button class for these create buttons regardless of whether
 `bp_get_member_user_id()` is correctly or incorrectly returning a value?

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6096#comment:9>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list