Opened 16 years ago
Closed 16 years ago
#10020 closed defect (bug) (fixed)
Extra hook needed over in the widgets
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 2.8 | Priority: | high |
Severity: | normal | Version: | 2.8 |
Component: | Widgets | Keywords: | has-patch tested commit |
Focuses: | Cc: |
Description
See attached patch. It allows, among other things, to change the widget form's width when adding extra fields.
Attachments (2)
Change History (7)
#2
@
16 years ago
@andrew: either patch works, but at least one needs to get in there. else we end up needing to change the globals. :-)
#4
@
16 years ago
Using css to hide the Save button is a good idea, however don't think more hooks are needed in WP_Widget. There seem to be too many as it is and each hook makes it run a little slower.
Plugins that add extra fields to each widget's form can append them under the original fields extending the form vertically. This would also require less js to be run on the admin page which would be a lot heavier with all the extra fields anyway.
Note: See
TracTickets for help on using
tickets.
The second patch also adds a class to the save button.
It's nit-picking, but it allows to fix the following use-case:
Using trunk, I change $return in the control_callback. Using the patch, I no longer change it, and I add this instead: