WordPress.org

Make WordPress Core

Ticket #14897: 14897.15.diff

File 14897.15.diff, 1.8 KB (added by PeteMall, 9 years ago)

Add search to site-themes.

  • wp-admin/network/site-themes.php

     
    11<?php
    22/**
    3  * Multisite themes administration panel.
     3 * Edit Site Themes Administration Screen
    44 *
    55 * @package WordPress
    6  * @subpackage Multisite
     6 * @subpackage Administration
    77 * @since 3.1.0
    88 */
    99
     
    1717$s = isset($_REQUEST['s']) ? $_REQUEST['s'] : '';
    1818
    1919// Clean up request URI from temporary args for screen options/paging uri's to work as expected.
    20 $_SERVER['REQUEST_URI'] = remove_query_arg(array('network-enable', 'network-disable', 'network-enable-selected', 'network-disable-selected'), $_SERVER['REQUEST_URI']);
     20$_SERVER['REQUEST_URI'] = remove_query_arg(array('enable', 'disable', 'enable-selected', 'disable-selected'), $_SERVER['REQUEST_URI']);
    2121
    2222$id = isset( $_REQUEST['id'] ) ? intval( $_REQUEST['id'] ) : 0;
    2323
     
    109109?>
    110110</h3>
    111111<p class="description"><?php _e( 'Network enabled themes are not shown on this screen.' ) ?></p>
    112 <?php
    113 if ( ! empty( $messages ) ) {
    114         foreach ( $messages as $msg )
    115                 echo '<div id="message" class="updated"><p>' . $msg . '</p></div>';
    116 }
    117112
    118 $wp_list_table->views(); ?>
     113<form method="get" action="">
     114<p class="search-box">
     115        <label class="screen-reader-text" for="theme-search-input"><?php _e( 'Search Themes' ); ?>:</label>
     116        <input type="text" id="theme-search-input" name="s" value="<?php _admin_search_query(); ?>" />
     117        <?php submit_button( __( 'Search Installed Themes' ), 'button', '', false ); ?>
     118</p>
     119</form>
    119120
     121<?php $wp_list_table->views(); ?>
     122
    120123<form method="post" action="site-themes.php?action=update-site">
    121124        <?php wp_nonce_field( 'edit-site' ); ?>
    122125        <input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" />