[wp-trac] [WordPress Trac] #28059: Inline image attachments with wp_mail()

WordPress Trac noreply at wordpress.org
Sat Aug 30 22:20:46 UTC 2025


#28059: Inline image attachments with wp_mail()
-------------------------------------------------+-------------------------
 Reporter:  jesin                                |       Owner:  SirLouen
     Type:  enhancement                          |      Status:  assigned
 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                       |
-------------------------------------------------+-------------------------

Comment (by SirLouen):

 Replying to [comment:22 TimothyBlynJacobs]:
 > Thanks @SirLouen! I've made a couple of tweaks. Will plan on committing
 later today or tomorrow.

 I was reviewing the inline docs, and I forgot that, since it was intended
 to be a replica of the `attachments` version it's also possible to add a
 string, which happens to get converted into a simple array with regular
 numeric keys. So I've added an extra unit test for this, just to make sure
 that both versions are always respected.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/28059#comment:23>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list