Ticket #17933: all_counter_approved_first.diff
File all_counter_approved_first.diff, 1.8 KB (added by , 13 years ago) |
---|
-
class-wp-comments-list-table.php
140 140 141 141 $status_links = array(); 142 142 $num_comments = ( $post_id ) ? wp_count_comments( $post_id ) : wp_count_comments(); 143 $num_comments->all = $num_comments->moderated + $num_comments->approved; 143 144 //, number_format_i18n($num_comments->moderated) ), "<span class='comment-count'>" . number_format_i18n($num_comments->moderated) . "</span>"), 144 145 //, number_format_i18n($num_comments->spam) ), "<span class='spam-comment-count'>" . number_format_i18n($num_comments->spam) . "</span>") 145 146 $stati = array( 146 'all' => _nx_noop('All', 'All', 'comments'), // singular not used 147 'all' => _nx_noop('All <span class="count">(<span class="all-count">%s</span>)</span>', 'All <span class="count">(<span class="all-count">%s</span>)</span>', 'comments'), // 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 147 149 '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 used149 150 '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>'), 150 151 '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>') 151 152 );