#18320 closed defect (bug) (invalid)
warning pluggable.php on line 273 - using apply_filters, should use apply_filters_ref_array?
Reported by: | anmari | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.2.1 |
Component: | Keywords: | reporter-feedback | |
Focuses: | Cc: |
Description
In a ms localhost testing site:
Warning: extract() [function.extract]: First argument should be an array in ...\wp-includes\pluggable.php on line 273
Line 273 has:
extract( apply_filters( 'wp_mail', compact( 'to', 'subject', 'message', 'headers', 'attachments' ) ) );
presumably this should use "apply_filters_ref_array" as "apply_filters" only expects a single value and returns a single value?
Change History (3)
Note: See
TracTickets for help on using
tickets.
compact() produces an array of the specified arguements, Filters should then filter the contents of this array and return the modified array.
It sounds like a function hooked to wp_mail is NOT returning an array like it should.