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:
parent
4fae1f64c2
commit
192a2e2f31
@ -185,7 +185,8 @@ setCommentsList = function() {
|
|||||||
pending = -1;
|
pending = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
updatePending(pending);
|
if ( pending )
|
||||||
|
updatePending(pending);
|
||||||
|
|
||||||
$('span.spam-count').each( function() {
|
$('span.spam-count').each( function() {
|
||||||
var a = $(this), n = getCount(a) + spam;
|
var a = $(this), n = getCount(a) + spam;
|
||||||
|
Loading…
Reference in New Issue
Block a user