Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#11362 closed enhancement (fixed)

Pass instance & id_base to the widget_title filter

Reported by: scribu Owned by: azaozz
Milestone: 3.0 Priority: normal
Severity: normal Version:
Component: Widgets Keywords: has-patch commit
Focuses: Cc:


[11792] passed the widget instance for text widgets.

Proposed patch adds that and also the widget type ($this->id_base) to all widget_title filters.

Attachments (1)

widget_title_args.diff (4.5 KB) - added by scribu 5 years ago.

Download all attachments as: .zip

Change History (4)

@scribu5 years ago

comment:1 @Denis-de-Bernardy5 years ago

Re r11792... I'm already dreading the moment where a plugin author mindlessly creates a function that expects two arguments on the widget_title filter. :-)

comment:2 @scribu5 years ago

  • Keywords commit added

Patch still aplies clean.

comment:3 @nacin5 years ago

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

(In [13248]) Always pass widget instance to widget_title filter. Also add widget type, props scribu, fixes #11362

Note: See TracTickets for help on using tickets.