Don't hide the comment reply or quick edit row if an error is returned. Props ocean90. Fixes #18350.

git-svn-id: http://svn.automattic.com/wordpress/trunk@18650 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
duck_ 2011-09-07 19:48:25 +00:00
parent 12becdf50d
commit 6841d365e5
3 changed files with 4 additions and 4 deletions

View File

@ -473,8 +473,6 @@ commentReply = {
show : function(xml) {
var t = this, r, c, id, bg, pid;
t.revert();
if ( typeof(xml) == 'string' ) {
t.error({'responseText': xml});
return false;
@ -486,6 +484,8 @@ commentReply = {
return false;
}
t.revert();
r = r.responses[0];
c = r.data;
id = '#comment-' + r.id;

File diff suppressed because one or more lines are too long

View File

@ -269,7 +269,7 @@ function wp_default_scripts( &$scripts ) {
$scripts->add( 'admin-custom-fields', "/wp-admin/js/custom-fields$suffix.js", array('wp-lists'), '20110429', 1 );
$scripts->add( 'admin-comments', "/wp-admin/js/edit-comments$suffix.js", array('wp-lists', 'quicktags', 'jquery-query'), '20110820', 1 );
$scripts->add( 'admin-comments', "/wp-admin/js/edit-comments$suffix.js", array('wp-lists', 'quicktags', 'jquery-query'), '20110907', 1 );
$scripts->add_script_data( 'admin-comments', 'adminCommentsL10n', array(
'hotkeys_highlight_first' => isset($_GET['hotkeys_highlight_first']),
'hotkeys_highlight_last' => isset($_GET['hotkeys_highlight_last']),