Make WordPress Core

Opened 4 years ago

Closed 4 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:
Milestone: 3.2 Priority: normal
Severity: trivial Version: 3.1.3
Component: Warnings/Notices Keywords: close
Focuses: Cc:


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)

#1 @ocean90
4 years ago

  • Keywords close added

Did you test it on WordPress 3.2? Should be fixed with r18006, see #17305.

#2 @SergeyBiryukov
4 years ago

  • Keywords needs-patch removed
  • Milestone changed from Awaiting Review to 3.2
  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.