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: http://svn.automattic.com/wordpress/trunk@20535 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
duck_ 2012-04-19 14:32:45 +00:00
parent 4fae1f64c2
commit 192a2e2f31

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;