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

    r16496 r16868  
    354354<?php $wp_list_table->views(); ?>
    355355
    356 <form class="search-form" action="" method="get">
     356<form action="" method="post">
     357
     358<?php if ( $wp_list_table->has_items() ) : ?>
     359
    357360<p class="search-box">
    358361    <label class="screen-reader-text" for="user-search-input"><?php _e( 'Search Users' ); ?>:</label>
     
    360363    <?php submit_button( __( 'Search Users' ), 'button', 'submit', false ); ?>
    361364</p>
    362 </form>
    363 
    364 <form id="posts-filter" action="" method="post">
     365
     366<?php endif; ?>
     367
    365368<?php $wp_list_table->display(); ?>
    366369</form>
Note: See TracChangeset for help on using the changeset viewer.