[wp-trac] [WordPress Trac] #14686: Widget Instance Form Update Bug

WordPress Trac noreply at wordpress.org
Wed Mar 25 21:01:38 UTC 2015


#14686: Widget Instance Form Update Bug
---------------------------+-----------------------------
 Reporter:  digitalnature  |       Owner:
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Future Release
Component:  Widgets        |     Version:  3.0.1
 Severity:  normal         |  Resolution:
 Keywords:  has-patch      |     Focuses:
---------------------------+-----------------------------

Comment (by westonruter):

 Replying to [comment:14 dgwyer]:
 > The patch I added works on the widgets admin page but not on the
 Customizer. When adding new widget instances on the Customizer similar
 code is needed to make sure the widget form gets properly updated.

 When implementing widgets in the Customizer, I intentionally made it so
 that the widget form would not submit when first added. If you try
 submitting an empty widget form, oftentimes a widget form may then display
 a validation/error message about a field being required. It would be a
 poor experience if adding a widget would be immediately followed by an
 error message displayed.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/14686#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list