#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: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Version: | 3.2.1 | |
| Severity: | normal | Keywords: | reporter-feedback |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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.