WordPress.org

Make WordPress Core

Opened 12 years ago

Closed 12 years ago

#9961 closed defect (bug) (fixed)

New Widgets API doesn't allow to return feedback on save

Reported by: Denis-de-Bernardy Owned by: azaozz
Milestone: 2.8 Priority: high
Severity: major Version: 2.8
Component: Widgets Keywords:
Focuses: Cc:

Description

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.

Change History (1)

#1 @azaozz
12 years ago

  • Resolution set to fixed
  • Status changed from new to closed

In [11498]

Note: See TracTickets for help on using tickets.