Skip to:
Content

BuddyPress.org

#8974 closed defect (bug) (fixed)

Typo in URL prevents accepting group memberships

Reported by: coffee2code's profile coffee2code Owned by: imath's profile imath
Milestone: 12.0.0 Priority: normal
Severity: normal Version:
Component: Groups Keywords: has-patch
Cc:

Description

An issue has cropped up recently with group admins on profiles.wordpress.org not being able to approve group memberships. After clicking the 'Accept' link next to the membership request (on the group's frontend 'Manage' tab), they encounter a 404.

After investigation, I discovered that [13446] changed how group links were generated. It looks as though the 'Accept' link generated via bp_get_group_request_accept_link() has a typo introduced during this rewrite, missing the ending 's'. When the request is sent against the pluralized path of 'membership-requests' the action completes successfully. The associated 'Reject' link generated via bp_get_group_request_reject_link() uses the pluralized form of 'membership-requests'.

Patch attached.

Attachments (1)

8974.diff (460 bytes) - added by coffee2code 16 months ago.
Patch mentioned in ticket.

Download all attachments as: .zip

Change History (3)

@coffee2code
16 months ago

Patch mentioned in ticket.

#1 @imath
16 months ago

  • Milestone changed from Awaiting Review to 12.0.0

Hi @coffee2code

Thanks a lot for your feedback and patch 😍. I will commit it asap 👌

#2 @imath
16 months ago

  • Owner set to imath
  • Resolution set to fixed
  • Status changed from new to closed

In 13548:

Groups: fix a typo in the group requests management "Accept" link

  • An "s" was missing at the end of the Group management Action in bp_get_group_request_accept_link().
  • This commit also avoids a notice error about an undefined $group variable by replacing this variable by groups_get_current_group().

Props coffee2code

Fixes #8974

Note: See TracTickets for help on using tickets.