[wp-trac] [WordPress Trac] #17918: Notice generated when using CC and BCC headers in pluggable function wp_mail()

WordPress Trac wp-trac at lists.automattic.com
Tue Jun 28 09:57:07 UTC 2011


#17918: Notice generated when using CC and BCC headers in pluggable function
wp_mail()
------------------------------+-----------------------------
 Reporter:  l3rady            |      Owner:
     Type:  defect (bug)      |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  Warnings/Notices  |    Version:  3.1.3
 Severity:  trivial           |   Keywords:  needs-patch
------------------------------+-----------------------------
 Brought to attention by this post:
 http://wordpress.stackexchange.com/questions/21265/wp-mail-not-
 recognizing-cc-and-bcc-headers

 On first iteration of the CC and BCC headers `$cc` and `$bcc` are not set
 so when the variables are used to merge with another array they generate a
 notice undefined index error.

 To fix the variables `$cc` and `$bcc` need to be check if they are set and
 if not set as blank array.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17918>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list