[wp-trac] [WordPress Trac] #28059: Inline image attachments with wp_mail()
WordPress Trac
noreply at wordpress.org
Fri Sep 5 13:52:15 UTC 2025
#28059: Inline image attachments with wp_mail()
-------------------------------------------------+-------------------------
Reporter: jesin | Owner: SirLouen
Type: enhancement | Status: reopened
Priority: normal | Milestone: 6.9
Component: Mail | Version:
Severity: normal | Resolution:
Keywords: has-patch has-test-info has-unit- | Focuses:
tests add-to-field-guide commit |
-------------------------------------------------+-------------------------
Changes (by SirLouen):
* keywords: has-patch has-test-info has-unit-tests add-to-field-guide =>
has-patch has-test-info has-unit-tests add-to-field-guide commit
Comment:
Ok @jorbin I've added the data provider to the test.
For the string part, we should be accepting a single path without an array
for the minimal case scenario, which is very convenient.
In this case, adding the equivalence with `attachments` improves
cohesiveness, and the increase in code is minimal (exploding vs. not
exploding). Someone already using the old version of attachments will pick
this up fast, and given how many reviews this has already had, this will
be better kept as is.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28059#comment:32>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list