WordPress.org

Make WordPress Core

Opened 23 months ago

Last modified 3 months ago

#20770 closed defect (bug)

Introduce AJAX response message — at Initial Version

Reported by: alexvorn2 Owned by:
Milestone: Priority: normal
Severity: minor Version: 3.4
Component: Widgets Keywords: has-patch needs-refresh
Focuses: Cc:

Description

when clicking on Save button of a widget, a error should appear if the user is logged out.

So after clicking the button the wpspin animated images disappears and nothing happens. This can be a problem if the current user think he is logged in and he is not, the settings just will not be saved.

Sometimes the server is not working.

Need to adjust the javascript code and php:
in php we can use die function : die('1') or die('success');

in javascript something like this:
$.post(ajaxurl, data, function(response){

if (response === 'success') {} else { alert('Fail to save'); }

});

http://wpimpact.com/wp-content/uploads/2012/05/Untitled-4.png

Change History (1)

kurtpayne23 months ago

Replace widget controls with "You are logged out!" message

Note: See TracTickets for help on using tickets.