[buddypress-trac] [BuddyPress Trac] #7044: Emails: Passing an email address to `bp_send_mail()` does not render `{recipient.name}` token

buddypress-trac noreply at wordpress.org
Tue May 3 02:37:29 UTC 2016


#7044: Emails: Passing an email address to `bp_send_mail()` does not render
`{recipient.name}` token
--------------------------+--------------------
 Reporter:  r-a-y         |       Owner:
     Type:  enhancement   |      Status:  new
 Priority:  normal        |   Milestone:  2.6
Component:  API - Emails  |     Version:  2.5.0
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+--------------------
Changes (by r-a-y):

 * milestone:  2.5.3 => 2.6


Comment:

 `02.patch` patches up the `BP_Email_Recipient` class.

 I've fleshed out the unit tests to handle known user email addresses and
 unknown email addresses.

 Question: What is the intention behind the `$name` parameter in
 `BP_Email_Recipient` class constructor?  Is it only used when a WP user
 isn't found?  I think it would be beneficial to use this as the main
 `$name` even if a WP user is found.  View the following unit tests for
 more info - `test_return_with_known_address_and_optional_name()` and
 `test_return_with_known_array_and_optional_name()`.

 Let's move this to 2.6.

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


More information about the buddypress-trac mailing list