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:
parent
34bc9bde36
commit
33cf1046db
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in New Issue