WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 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:

Description

[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 4 years ago.

Download all attachments as: .zip

Change History (4)

scribu4 years ago

comment:1 Denis-de-Bernardy4 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 scribu4 years ago

  • Keywords commit added

Patch still aplies clean.

comment:3 nacin4 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.