[buddypress-trac] [BuddyPress] #5269: Notice error in bp_get_group_join_button() for non members of private groups
buddypress-trac
noreply at wordpress.org
Thu Nov 28 19:34:53 UTC 2013
#5269: Notice error in bp_get_group_join_button() for non members of private
groups
--------------------------+-----------------------------
Reporter: imath | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Groups | Version: 1.8.1
Severity: minor | Keywords: has-patch
--------------------------+-----------------------------
Actually, the problem doesn't exist in 1.8.1. This is something i've only
noticed in 1.9-beta1
If a group is private, then if the logged in user is not a member of this
group, in the groups directory, bp_get_group_join_button() causes a notice
error as {{{$group->is_invited}}} is not defined.
I suggest the diff attached (simply adds an isset check)
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5269>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list