WordPress.org

Make WordPress Core

Changeset 20535


Ignore:
Timestamp:
04/19/2012 02:32:45 PM (6 years ago)
Author:
duck_
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/js/edit-comments.dev.js

    r20164 r20535  
    186186        }
    187187
    188         updatePending(pending);
     188        if ( pending )
     189            updatePending(pending);
    189190
    190191        $('span.spam-count').each( function() {
Note: See TracChangeset for help on using the changeset viewer.