diff --git a/src/wp-admin/js/edit-comments.js b/src/wp-admin/js/edit-comments.js index aa86592edf..953f934534 100644 --- a/src/wp-admin/js/edit-comments.js +++ b/src/wp-admin/js/edit-comments.js @@ -228,7 +228,7 @@ setCommentsList = function() { // In admin-ajax.php, we send back the unix time stamp instead of 1 on success delAfter = function( r, settings ) { - var total_items_i18n, total, animated, animatedCallback, postSelector, + var total_items_i18n, total, animated, animatedCallback, response = true === settings.parsed ? {} : settings.parsed.responses[0], commentStatus = true === settings.parsed ? '' : response.supplemental.status, commentPostId = true === settings.parsed ? '' : response.supplemental.postId, @@ -362,8 +362,6 @@ setCommentsList = function() { } } - postSelector = '.post-com-count-' + commentPostId; - if ( pendingDiff ) { updatePending( pendingDiff, commentPostId ); }