Make WordPress Core

Ticket #40188: 40188.4.patch

File 40188.4.patch, 677 bytes (added by Jim_Panse, 8 years ago)
  • src/wp-admin/includes/class-wp-comments-list-table.php

    diff --git a/src/wp-admin/includes/class-wp-comments-list-table.php b/src/wp-admin/includes/class-wp-comments-list-table.php
    index fa41a72..8c2ad2e 100644
    a b class WP_Comments_List_Table extends WP_List_Table { 
    322322?>
    323323                <div class="alignleft actions">
    324324<?php
    325                 if ( 'top' === $which ) {
     325                if ( 'top' === $which && get_comments( array( 'number' => 1 ) ) ) {
    326326?>
    327327                        <label class="screen-reader-text" for="filter-by-comment-type"><?php _e( 'Filter by comment type' ); ?></label>
    328328                        <select id="filter-by-comment-type" name="comment_type">