[wp-trac] [WordPress Trac] #14686: Widget Instance Form Update Bug
WordPress Trac
wp-trac at lists.automattic.com
Mon Dec 19 19:09:00 UTC 2011
#14686: Widget Instance Form Update Bug
---------------------------+-----------------------------
Reporter: digitalnature | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Widgets | Version: 3.3
Severity: normal | Resolution:
Keywords: needs-patch |
---------------------------+-----------------------------
Comment (by azaozz):
The first 'save-widget' is run to actually create the widget instance in
PHP (i.e. let the back-end know there's a new instance of that widget and
run any PHP hooks on it). Then all of the new widget instance's HTML is
loaded into the new widget "wrap" on the front as return from that XHR
request. This includes any changes made by the PHP hooks.
Don't think there's a way around this, seems we can fire a custom event
after the initial XHR to trigger changes that need to be made by JS on
adding new widget instance.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14686#comment:9>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list