Opened 15 years ago
Closed 14 years ago
#17918 closed defect (bug) (fixed)
Notice generated when using CC and BCC headers in pluggable function wp_mail()
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | 3.2 | Priority: | normal |
| Severity: | trivial | Version: | 3.1.3 |
| Component: | Warnings/Notices | Keywords: | close |
| Focuses: | Cc: |
Description
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.
Change History (2)
Note: See
TracTickets for help on using
tickets.
Did you test it on WordPress 3.2? Should be fixed with r18006, see #17305.