[wp-trac] [WordPress Trac] #30128: Allow to use associative arrays beside indexed arrays in wp_mail $headers
WordPress Trac
noreply at wordpress.org
Mon Oct 27 21:15:13 UTC 2014
#30128: Allow to use associative arrays beside indexed arrays in wp_mail $headers
-----------------------------+-----------------------------
Reporter: marsjaninzmarsa | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Mail | Version: trunk
Severity: normal | Keywords:
Focuses: |
-----------------------------+-----------------------------
eg:
{{{
$headers = [
'From' => 'Me Myself <me at example.net>',
'Cc' => 'John Q Codex <jqc at wordpress.org>',
];
}}}
beside:
{{{
$headers = [
'From: Me Myself <me at example.net>',
'Cc: John Q Codex <jqc at wordpress.org>',
];
}}}
and also (because why not):
{{{
$headers = [
'From' => 'Me Myself <me at example.net>',
'Cc' => [
'John Q Codex <jqc at wordpress.org>',
'iluvwp at wordpress.org',
],
];
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30128>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list