Make WordPress Core

Opened 16 years ago

Closed 16 years ago

#6684 closed defect (bug) (fixed)

Widget titles and text lack filtering

Reported by: jhodgdon's profile jhodgdon Owned by: ryan's profile ryan
Milestone: 2.6 Priority: normal
Severity: normal Version: 2.5
Component: Administration Keywords: widget, filter, has-patch
Focuses: Cc:

Description

As of the 2.5 release, there is currently no way for a plugin to filter widget titles (for the widgets supplied with WordPress in wp-includes/widget.php). The patch I am about to attach adds filters to all built-in widget titles. This is primarily useful for multi-lingual blogs.

I realize that for most widgets, if you leave the title attribute blank, you will at least get an internationalized string for the title, but that doesn't give the user the option to override the title.

Patch coming shortly; patch was tested in 2.6 bleeding [7640].

Attachments (1)

widgets.php.diff (3.9 KB) - added by jhodgdon 16 years ago.
Add filtering to all built-in widget titles

Download all attachments as: .zip

Change History (4)

@jhodgdon
16 years ago

Add filtering to all built-in widget titles

#1 @jhodgdon
16 years ago

  • Keywords has-patch added

Patch is there. Also note that the Text Widget really needs this, since there is no default title for that widget -- it's all user-supplied. The others I would consider to be a nice enhancement.

#2 @ryan
16 years ago

  • Owner changed from anonymous to ryan

#3 @ryan
16 years ago

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

(In [7850]) widget_title filters from jhodgdon. fixes #6684

Note: See TracTickets for help on using tickets.