Make WordPress Core

Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#10035 closed defect (bug) (wontfix)

Allow to override the widget's option name

Reported by: denis-de-bernardy's profile Denis-de-Bernardy Owned by: azaozz's profile azaozz
Milestone: Priority: normal
Severity: blocker Version: 2.8
Component: Widgets Keywords: has-patch tested commit
Focuses: Cc:

Description

See attached patch. Not all plugins use the widget_[name] convention, and the patch allows to readily migrate old widgets to their new format.

Attachments (1)

10035.diff (812 bytes) - added by Denis-de-Bernardy 17 years ago.

Download all attachments as: .zip

Change History (4)

#1 @azaozz
17 years ago

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

The alt_option_name can be used to solve this similarly to WP_Widget_Recent_Comments and WP_Widget_Recent_Posts.

#2 @Denis-de-Bernardy
17 years ago

it might be worth documenting it a bit more than it already is, in the widget's constructor et al.

#3 @Denis-de-Bernardy
17 years ago

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