Notice generated when using CC and BCC headers in pluggable function wp_mail()
|Reported by:||l3rady||Owned by:|
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.