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 Owned by: azaozz
Priority: normal Milestone:
Component: Widgets Version: 2.8
Severity: blocker Keywords: has-patch tested commit
Cc: Focuses:

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

  • Resolutionwontfix
  • Status newclosed

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
Note: See TracTickets for help on using tickets.