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

    r16776 r16868  
    363363<h2><?php echo esc_html( $title ); if ( current_user_can('install_plugins') ) { ?> <a href="plugin-install.php" class="button add-new-h2"><?php echo esc_html_x('Add New', 'plugin'); ?></a><?php } ?></h2>
    364364
    365 <form method="get" action="">
     365<?php do_action( 'pre_current_active_plugins', $plugins['all'] ) ?>
     366
     367<?php $wp_list_table->views(); ?>
     368
     369<form method="post" action="">
     370
     371<?php if ( $wp_list_table->has_items() ) : ?>
     372
    366373<p class="search-box">
    367374    <label class="screen-reader-text" for="plugin-search-input"><?php _e( 'Search Plugins' ); ?>:</label>
     
    369376    <?php submit_button( __( 'Search Installed Plugins' ), 'button', '', false ); ?>
    370377</p>
    371 </form>
    372 
    373 <?php do_action( 'pre_current_active_plugins', $plugins['all'] ) ?>
    374 
    375 <?php $wp_list_table->views(); ?>
    376 
    377 <form method="post" action="">
     378
     379<?php endif; ?>
     380
    378381<input type="hidden" name="plugin_status" value="<?php echo esc_attr($status) ?>" />
    379382<input type="hidden" name="paged" value="<?php echo esc_attr($page) ?>" />
Note: See TracChangeset for help on using the changeset viewer.