Make WordPress Core

Opened 9 years ago

Closed 9 years ago

Last modified 9 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:


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)

#1 @dd32
9 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.

#2 @anmari
9 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!

#3 @kawauso
9 years ago

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