WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 4 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:

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

Download all attachments as: .zip

Change History (4)

Denis-de-Bernardy4 years ago

comment:1 azaozz4 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.

comment:2 Denis-de-Bernardy4 years ago

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

comment:3 Denis-de-Bernardy4 years ago

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