[wp-trac] Re: [WordPress Trac] #10185: wp_mail filter does not
return filtered strings
WordPress Trac
wp-trac at lists.automattic.com
Tue Jun 16 11:26:08 GMT 2009
#10185: wp_mail filter does not return filtered strings
--------------------------+-------------------------------------------------
Reporter: anmari | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Unassigned
Component: General | Version:
Severity: normal | Keywords: wp_mail, filters, extract
--------------------------+-------------------------------------------------
Comment(by dd32):
> apply filters returns a string with "array" ?, so this code does not
appear to work.
Are you sure your plugin is not incorrectly returning something on that
filter? - It works as expected for me.
> Further down the filters are applied again individually for
'wp_mail_from' and 'wp_mail_from_name' why not apply the wp_mail filters
on the subject and body lines there rather?
As you can see in the code, Its mainly for legacy purposes that they're
set separately.
Its possible to add them into the wp_mail filter.. but.. In the end, For
back compat purposes, The other filters will remain in their current
location, as well as the legacy code overriding the wp_mail filter..
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10185#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list