mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-01 21:21:24 +01:00
Fix MS User search. See #14579
git-svn-id: http://svn.automattic.com/wordpress/trunk@15603 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7ae94106b4
commit
6509fa203a
@ -2948,6 +2948,8 @@ class WP_MS_Users_Table extends WP_List_Table {
|
||||
}
|
||||
|
||||
function prepare_items() {
|
||||
global $usersearch;
|
||||
|
||||
$usersearch = isset( $_REQUEST['s'] ) ? $_REQUEST['s'] : '';
|
||||
|
||||
$users_per_page = $this->get_items_per_page( 'ms_users_per_page' );
|
||||
|
@ -63,14 +63,14 @@ if ( isset( $_REQUEST['updated'] ) && $_REQUEST['updated'] == 'true' && ! empty(
|
||||
<h2><?php esc_html_e( 'Users' ); ?>
|
||||
<a href="#form-add-user" class="button add-new-h2"><?php echo esc_html_x( 'Add New' , 'users'); ?></a>
|
||||
<?php
|
||||
if ( isset( $_REQUEST['s'] ) && $_REQUEST['s'] )
|
||||
printf( '<span class="subtitle">' . __( 'Search results for “%s”' ) . '</span>', esc_html( $s ) );
|
||||
if ( !empty( $usersearch ) )
|
||||
printf( '<span class="subtitle">' . __( 'Search results for “%s”' ) . '</span>', esc_html( $usersearch ) );
|
||||
?>
|
||||
</h2>
|
||||
|
||||
<form action="" method="get" class="search-form">
|
||||
<p class="search-box">
|
||||
<input type="text" name="s" value="<?php echo esc_attr( $s ); ?>" class="search-input" id="user-search-input" />
|
||||
<input type="text" name="s" value="<?php echo esc_attr( $usersearch ); ?>" class="search-input" id="user-search-input" />
|
||||
<input type="submit" id="post-query-submit" value="<?php esc_attr_e( 'Search Users' ) ?>" class="button" />
|
||||
</p>
|
||||
</form>
|
||||
|
Loading…
Reference in New Issue
Block a user