[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
Thu May 19 20:52:22 UTC 2016


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

Comment (by r-a-y):

 > Other than that empty tweak, this is ready to go in.

 I've made your adjustment as noted in comment:6.

 FWIW, `empty()` is slightly faster than doing a plain variable check:
 http://maettig.com/code/php/php-performance-benchmarks.php

 Micro-optimization vs. legibility, the eternal battle.  Legibility wins
 this round :)

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


More information about the buddypress-trac mailing list