Make WordPress Core

Opened 13 years ago

Closed 13 years ago

Last modified 13 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's profile 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)

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

#3 @kawauso
13 years ago

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