Opened 16 months ago
Closed 16 months ago
#8974 closed defect (bug) (fixed)
Typo in URL prevents accepting group memberships
Reported by: | coffee2code | Owned by: | 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.
Patch mentioned in ticket.