WordPress.org

Make WordPress Core

Changeset 15603


Ignore:
Timestamp:
09/09/2010 10:20:07 AM (8 years ago)
Author:
scribu
Message:

Fix MS User search. See #14579

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/default-list-tables.php

    r15597 r15603  
    29492949
    29502950    function prepare_items() {
     2951        global $usersearch;
     2952
    29512953        $usersearch = isset( $_REQUEST['s'] ) ? $_REQUEST['s'] : '';
    29522954
  • trunk/wp-admin/network/users.php

    r15528 r15603  
    6464    <a href="#form-add-user" class="button add-new-h2"><?php echo esc_html_x( 'Add New' , 'users'); ?></a>
    6565    <?php
    66     if ( isset( $_REQUEST['s'] ) && $_REQUEST['s'] )
    67     printf( '<span class="subtitle">' . __( 'Search results for &#8220;%s&#8221;' ) . '</span>', esc_html( $s ) );
     66    if ( !empty( $usersearch ) )
     67    printf( '<span class="subtitle">' . __( 'Search results for &#8220;%s&#8221;' ) . '</span>', esc_html( $usersearch ) );
    6868    ?>
    6969    </h2>
     
    7171    <form action="" method="get" class="search-form">
    7272        <p class="search-box">
    73         <input type="text" name="s" value="<?php echo esc_attr( $s ); ?>" class="search-input" id="user-search-input" />
     73        <input type="text" name="s" value="<?php echo esc_attr( $usersearch ); ?>" class="search-input" id="user-search-input" />
    7474        <input type="submit" id="post-query-submit" value="<?php esc_attr_e( 'Search Users' ) ?>" class="button" />
    7575        </p>
Note: See TracChangeset for help on using the changeset viewer.