WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/21/2017 02:20:23 AM (3 years ago)
Author:
SergeyBiryukov
Message:

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

Props kailanitish90, sagarprajapati.
Fixes #39435.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/users.php

    r39588 r39937  
    510510<?php $wp_list_table->search_box( __( 'Search Users' ), 'user' ); ?>
    511511
     512<?php if ( ! empty( $_REQUEST['role'] ) ) { ?>
     513<input type="hidden" name="role" value="<?php echo esc_attr( $_REQUEST['role'] ); ?>" />
     514<?php } ?>
     515
    512516<?php $wp_list_table->display(); ?>
    513517</form>
Note: See TracChangeset for help on using the changeset viewer.