WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/10/2010 08:22:34 PM (9 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.php

    r16856 r16868  
    228228
    229229<form id="posts-filter" action="" method="get">
     230
     231<?php if ( $wp_list_table->has_items() ) : ?>
     232
    230233<p class="search-box">
    231234    <label class="screen-reader-text" for="post-search-input"><?php echo $post_type_object->labels->search_items; ?>:</label>
     
    234237</p>
    235238
     239<?php endif; ?>
     240
    236241<input type="hidden" name="post_status" class="post_status_page" value="<?php echo !empty($_REQUEST['post_status']) ? esc_attr($_REQUEST['post_status']) : 'all'; ?>" />
    237242<input type="hidden" name="post_type" class="post_type_page" value="<?php echo $post_type; ?>" />
Note: See TracChangeset for help on using the changeset viewer.