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

Props kailanitish90, sagarprajapati.
Fixes #39435.
Built from https://develop.svn.wordpress.org/trunk@39937


git-svn-id: http://core.svn.wordpress.org/trunk@39874 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2017-01-21 02:21:43 +00:00
parent 4fbcfe3a8c
commit 8f0e75db16
2 changed files with 5 additions and 1 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>

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.8-alpha-39936';
$wp_version = '4.8-alpha-39937';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.