Make WordPress Core

Ticket #40188: 40188.patch

File 40188.patch, 657 bytes (added by Jim_Panse, 8 years ago)

Patch for #40188

  • 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..a81b453 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 && $this->has_items() ) {
    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">