#8233 closed defect (bug) (fixed)
groups_send_invites() skipping `force_resend` parameter
Reported by: | boonebgorges | Owned by: | boonebgorges |
---|---|---|---|
Milestone: | 5.2.0 | Priority: | normal |
Severity: | normal | Version: | 5.0.0 |
Component: | Groups | Keywords: | |
Cc: |
Description
After 5.0, the internals of groups_send_invites()
have an error in the way they set up the invitation query. See https://buddypress.trac.wordpress.org/browser/tags/5.1.2/src/bp-groups/bp-groups-functions.php?marks=1702-1707,1693-1700#L1671 - $args['invite_sent']
is correctly inferred from force_resend
, but immediately afterward, $args
is reinitialized. The two blocks in question ought to be reversed.
Attachments (1)
Change History (5)
#2
@
5 years ago
Thanks, @boonebgorges. Yes, the change you are suggesting looks correct to me. Those two blocks being inverted look like whatever the "bad patch application" version of copypasta is.
Thanks!
See 8233.diff. @dcavins, could you please review?