Make WordPress Core


Ignore:
Timestamp:
08/25/2014 04:02:43 PM (11 years ago)
Author:
helen
Message:

Only show one search form for the plugin installer.

The field dropdown now appears in the filter bar only when doing a search.

see #28785.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-plugin-install-list-table.php

    r29594 r29597  
    122122                }
    123123
    124                 add_action( 'install_plugins_table_header', 'install_search_form', 10, 0 );
    125124                break;
    126125
     
    196195            $message = __( 'No plugins match your request.' );
    197196        }
    198         echo '<div class="wp-filter-no-results">' . $message . '</div>';
     197        echo '<div class="no-plugin-results">' . $message . '</div>';
    199198    }
    200199
     
    204203        $display_tabs = array();
    205204        foreach ( (array) $tabs as $action => $text ) {
    206             $class = 'wp-filter-link';
    207             $class .= ( $action == $tab ) ? ' current' : '';
     205            $class = ( $action == $tab ) ? ' current' : '';
    208206            $href = self_admin_url('plugin-install.php?tab=' . $action);
    209207            $display_tabs['plugin-install-'.$action] = "<a href='$href' class='$class'>$text</a>";
     
    224222?>
    225223<div class="wp-filter">
    226     <ul class="wp-filter-links">
     224    <ul class="filter-links">
    227225        <?php
    228226        if ( ! empty( $views ) ) {
     
    235233    </ul>
    236234
    237     <?php install_search_form( false ); ?>
     235    <?php install_search_form( isset( $views['plugin-install-search'] ) ); ?>
    238236</div>
    239237<?php
Note: See TracChangeset for help on using the changeset viewer.