Users: Preserve role filter in list table after entering a page number in paging input.

Props kailanitish90, sagarprajapati.
Fixes #39435.

git-svn-id: https://develop.svn.wordpress.org/trunk@39937 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2017-01-21 02:20:23 +00:00
parent 34bc9bde36
commit 33cf1046db
1 changed files with 4 additions and 0 deletions

View File

@ -509,6 +509,10 @@ if ( strlen( $usersearch ) ) {
<?php $wp_list_table->search_box( __( 'Search Users' ), 'user' ); ?>
<?php if ( ! empty( $_REQUEST['role'] ) ) { ?>
<input type="hidden" name="role" value="<?php echo esc_attr( $_REQUEST['role'] ); ?>" />
<?php } ?>
<?php $wp_list_table->display(); ?>
</form>