[wp-trac] [WordPress Trac] #30128: Allow to use associative arrays beside indexed arrays in wp_mail $headers

WordPress Trac noreply at wordpress.org
Wed Oct 15 23:01:55 UTC 2025


#30128: Allow to use associative arrays beside indexed arrays in wp_mail $headers
-------------------------------------------------+-------------------------
 Reporter:  marsjaninzmarsa                      |       Owner:  (none)
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  Mail                                 |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests has-test-   |     Focuses:
  info changes-requested                         |
-------------------------------------------------+-------------------------
Changes (by SirLouen):

 * keywords:  has-patch has-unit-tests has-test-info => has-patch has-unit-
     tests has-test-info changes-requested
 * milestone:  6.9 => Future Release


Comment:

 As per @westonruter suggested, `Content-Type` is not being considered into
 the tests, neither the possibilities among a full header as array.

 I'm going to put back this into `Future Milestone` and see if I can give
 it a second thought to improve the code.

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


More information about the wp-trac mailing list