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/upload.php

    r16333 r16868  
    203203<?php $wp_list_table->views(); ?>
    204204
    205 <form class="search-form" action="" method="get">
     205<form id="posts-filter" action="" method="post">
     206
     207<?php if ( $wp_list_table->has_items() ) : ?>
     208
    206209<p class="search-box">
    207210    <label class="screen-reader-text" for="media-search-input"><?php _e( 'Search Media' ); ?>:</label>
     
    209212    <?php submit_button( __( 'Search Media' ), 'button', 'submit', false ); ?>
    210213</p>
    211 </form>
    212 
    213 <form id="posts-filter" action="" method="post">
     214
     215<?php endif; ?>
     216
    214217<?php $wp_list_table->display(); ?>
     218
    215219<div id="ajax-response"></div>
    216220<?php find_posts_div(); ?>
Note: See TracChangeset for help on using the changeset viewer.