[wp-trac] [WordPress Trac] #9961: New Widgets API doesn't allow to return feedback on save

WordPress Trac wp-trac at lists.automattic.com
Thu May 28 17:56:00 GMT 2009


#9961: New Widgets API doesn't allow to return feedback on save
-------------------------------+--------------------------------------------
 Reporter:  Denis-de-Bernardy  |       Owner:  azaozz
     Type:  defect (bug)       |      Status:  new   
 Priority:  high               |   Milestone:  2.8   
Component:  Widgets            |     Version:  2.8   
 Severity:  major              |    Keywords:        
-------------------------------+--------------------------------------------
 When js is enabled, and you save a widget, there are several issues with
 the current implementation:

  - If an error occurs (in the script or wherever), it's difficult to know
  - You cannot return an error message (short of using js form validation)
 to a user when he enters erroneous values
  - If the user enters values that get sanitized or auto-corrected by the
 update function, the widget still shows the junk entered by the user upon
 saving

 Suggested enhancement: output the results of update() and form() on the
 ajax, and replace the widget's current contents with their updated value.

 Marking this as a defect, rather than an enhancement, due to how
 complicated it makes writing a widget form without using Firebug.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/9961>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list