mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 04:40:26 +00:00
Handle error response in autosave_update_slug(), props nacin, fixes #16975
git-svn-id: https://develop.svn.wordpress.org/trunk@17565 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -161,8 +161,10 @@ function autosave_update_slug(post_id) {
|
||||
samplepermalinknonce: jQuery('#samplepermalinknonce').val()
|
||||
},
|
||||
function(data) {
|
||||
jQuery('#edit-slug-box').html(data);
|
||||
makeSlugeditClickable();
|
||||
if ( data !== '-1' ) {
|
||||
jQuery('#edit-slug-box').html(data);
|
||||
makeSlugeditClickable();
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user