WordPress.org

Make WordPress Core

Ticket #17933: approved_counter.diff

File approved_counter.diff, 1.1 KB (added by CoenJacobs, 3 years ago)

Added counter to the 'Approved' status link

  • class-wp-comments-list-table.php

     
    145145                $stati = array( 
    146146                                'all' => _nx_noop('All', 'All', 'comments'), // singular not used 
    147147                                'moderated' => _n_noop('Pending <span class="count">(<span class="pending-count">%s</span>)</span>', 'Pending <span class="count">(<span class="pending-count">%s</span>)</span>'), 
    148                                 'approved' => _n_noop('Approved', 'Approved'), // singular not used 
     148                                'approved' => _n_noop('Approved <span class="count">(<span class="approved-count">%s</span>)</span>', 'Approved <span class="count">(<span class="approved-count">%s</span>)</span>'), // singular not used 
    149149                                'spam' => _n_noop('Spam <span class="count">(<span class="spam-count">%s</span>)</span>', 'Spam <span class="count">(<span class="spam-count">%s</span>)</span>'), 
    150150                                'trash' => _n_noop('Trash <span class="count">(<span class="trash-count">%s</span>)</span>', 'Trash <span class="count">(<span class="trash-count">%s</span>)</span>') 
    151151                        );