Make WordPress Core

Opened 14 years ago

Closed 14 years ago

#11362 closed enhancement (fixed)

Pass instance & id_base to the widget_title filter

Reported by: scribu's profile scribu Owned by: azaozz's profile 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 14 years ago.

Download all attachments as: .zip

Change History (4)

#1 @Denis-de-Bernardy
14 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. :-)

#2 @scribu
14 years ago

  • Keywords commit added

Patch still aplies clean.

#3 @nacin
14 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.