[wp-trac] Re: [WordPress Trac] #9504: Using "Cancel" link in widget
admin causes that widget to lose all its options on save
WordPress Trac
wp-trac at lists.automattic.com
Fri Apr 10 18:37:46 GMT 2009
#9504: Using "Cancel" link in widget admin causes that widget to lose all its
options on save
--------------------------+-------------------------------------------------
Reporter: markjaquith | Owner: ryan
Type: defect (bug) | Status: new
Priority: high | Milestone: 2.8
Component: Widgets | Version: 2.8
Severity: major | Keywords: needs-patch
--------------------------+-------------------------------------------------
Comment(by ryan):
The POST info for the widget is empty after Cancel is pressed. Edit ->
Cancel -> Edit -> Done preserves the info. The new widgets are assuming
that update() is always called with full info for $new_instance. We can
do like the old widgets do and merge $new_instance over $old_instance.
I'll hold off on that until after the UI update. Maybe we can fix Cancel.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9504#comment:3>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list