Opened 15 years ago
Closed 15 years ago
#17918 closed defect (bug) (fixed)
Notice generated when using CC and BCC headers in pluggable function wp_mail()
| Reported by: | l3rady | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.2 |
| Component: | Warnings/Notices | Version: | 3.1.3 |
| Severity: | trivial | Keywords: | close |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Did you test it on WordPress 3.2? Should be fixed with r18006, see #17305.