[buddypress-trac] [BuddyPress Trac] #6969: BP Emails - friendship accepted email is not sent

buddypress-trac noreply at wordpress.org
Mon Mar 21 20:34:51 UTC 2016

#6969: BP Emails - friendship accepted email is not sent
 Reporter:  shanebp       |       Owner:  r-a-y
     Type:  defect (bug)  |      Status:  accepted
 Priority:  normal        |   Milestone:  2.5.2
Component:  API - Emails  |     Version:  2.5.0
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
Changes (by r-a-y):

 * keywords:   => has-patch
 * status:  reviewing => accepted
 * version:   => 2.5.0



 Bug occurs when a numeric string is passed to `BP_Email_Recipient` instead
 of an integer.

 I suggest patching `BP_Email_Recipient` to use `is_numeric()` instead of
 `is_int()` to fix this problem.  A broader solution would be to audit all
 our access methods and functions to ensure that numeric strings are cast
 as integers or to use `is_numeric()` where needed.

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6969#comment:2>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac

More information about the buddypress-trac mailing list