[buddypress-trac] [BuddyPress Trac] #9171: bp_user_has_opted_out() is misused in bp_email_unsubscribe_handler()

buddypress-trac noreply at wordpress.org
Thu Jun 6 21:34:27 UTC 2024


#9171: bp_user_has_opted_out() is misused in bp_email_unsubscribe_handler()
--------------------------+---------------------
 Reporter:  dcavins       |       Owner:  DJPaul
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  14.0.0
Component:  Emails        |     Version:  12.5.0
 Severity:  normal        |  Resolution:  fixed
 Keywords:                |
--------------------------+---------------------
Changes (by dcavins):

 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"13908" 13908]:
 {{{
 #!CommitTicketReference repository="" revision="13908"
 Make sure to pass an email address to bp_user_has_opted_out().

 In `bp_email_unsubscribe_handler()` we missed passing the incoming email
 to `bp_user_has_opted_out()`.
 It's hard to figure out whether a user has opted out if you don't check
 the user's email address.

 Props emeralive.

 Fixes #9171.
 }}}

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


More information about the buddypress-trac mailing list