mirror of
git://develop.git.wordpress.org/
synced 2025-01-18 05:18:42 +01:00
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:
parent
29ca3e321a
commit
12042b56b8
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user