WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#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: Mail 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)

comment:1 @dd324 years ago

  • Keywords reporter-feedback added

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.

comment:2 @anmari4 years ago

  • Resolution set to invalid
  • Status changed from new to closed

Hah - you're right - I had almost nothing enabled, and not working with mail but then double checked all -and found a stray filter in an old file. whew!
Apologies.

comment:3 @kawauso4 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.