[wp-trac] [WordPress Trac] #63127: wp_mail resets custom headers when headers array is set to empty, causing loss of custom header data (e.g., boundary)
WordPress Trac
noreply at wordpress.org
Wed Mar 19 16:21:56 UTC 2025
#63127: wp_mail resets custom headers when headers array is set to empty, causing
loss of custom header data (e.g., boundary)
--------------------------+------------------------------
Reporter: regnalf | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Mail | Version: 6.7.2
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by joemcgill):
Thanks @regnalf. It looks like custom data gets processed in the following
block after saving the $headers data to a $tempheaders variable.
See: https://github.com/WordPress/wordpress-
develop/blob/360732e132c009bedd59cff77511514103077f50/src/wp-
includes/pluggable.php#L282-L352
Is there a specific header that you expect to be processed that is not
being accounted for in that block?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63127#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list