Make WordPress Core


Ignore:
Timestamp:
12/10/2010 08:22:34 PM (14 years ago)
Author:
scribu
Message:

Don't show search box if there are no items available. See #15353

File:
1 edited

Legend:

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

    r16856 r16868  
    221221
    222222<form id="comments-form" action="" method="post">
     223
     224<?php if ( $wp_list_table->has_items() ) : ?>
     225
    223226<p class="search-box">
    224227    <label class="screen-reader-text" for="comment-search-input"><?php _e( 'Search Comments' ); ?>:</label>
     
    226229    <?php submit_button( __( 'Search Comments' ), 'button', 'submit', false ); ?>
    227230</p>
     231
     232<?php endif; ?>
     233
    228234<?php if ( $post_id ) : ?>
    229235<input type="hidden" name="p" value="<?php echo esc_attr( intval( $post_id ) ); ?>" />
Note: See TracChangeset for help on using the changeset viewer.