Don't call updatePending() if the pending count hasn't changed. See #19905.

Stops a zero pending count bubble being shown when unspamming and approved comment
when there are no pending comments.


git-svn-id: https://develop.svn.wordpress.org/trunk@20535 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jon Cave 2012-04-19 14:32:45 +00:00
parent 29ca3e321a
commit 12042b56b8

View File

@ -185,7 +185,8 @@ setCommentsList = function() {
pending = -1;
}
updatePending(pending);
if ( pending )
updatePending(pending);
$('span.spam-count').each( function() {
var a = $(this), n = getCount(a) + spam;