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:
Andrew Ozz
2011-03-27 20:09:09 +00:00
parent 43d4c448bf
commit d400b19f92
3 changed files with 6 additions and 4 deletions
+4 -2
View File
@@ -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();
}
}
);
}