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:
@@ -473,8 +473,6 @@ commentReply = {
|
|||||||
show : function(xml) {
|
show : function(xml) {
|
||||||
var t = this, r, c, id, bg, pid;
|
var t = this, r, c, id, bg, pid;
|
||||||
|
|
||||||
t.revert();
|
|
||||||
|
|
||||||
if ( typeof(xml) == 'string' ) {
|
if ( typeof(xml) == 'string' ) {
|
||||||
t.error({'responseText': xml});
|
t.error({'responseText': xml});
|
||||||
return false;
|
return false;
|
||||||
@@ -486,6 +484,8 @@ commentReply = {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
t.revert();
|
||||||
|
|
||||||
r = r.responses[0];
|
r = r.responses[0];
|
||||||
c = r.data;
|
c = r.data;
|
||||||
id = '#comment-' + r.id;
|
id = '#comment-' + r.id;
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -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-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(
|
$scripts->add_script_data( 'admin-comments', 'adminCommentsL10n', array(
|
||||||
'hotkeys_highlight_first' => isset($_GET['hotkeys_highlight_first']),
|
'hotkeys_highlight_first' => isset($_GET['hotkeys_highlight_first']),
|
||||||
'hotkeys_highlight_last' => isset($_GET['hotkeys_highlight_last']),
|
'hotkeys_highlight_last' => isset($_GET['hotkeys_highlight_last']),
|
||||||
|
|||||||
Reference in New Issue
Block a user