Add orderby and order hidden fields to each list form, to allow for state. props SergeyBiryukov, fixes #16341.

git-svn-id: https://develop.svn.wordpress.org/trunk@17353 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2011-01-22 18:36:54 +00:00
parent 3949bb8c60
commit 3b7734f41a

View File

@ -196,6 +196,10 @@ class WP_List_Table {
$input_id = $input_id . '-search-input';
if ( ! empty( $_REQUEST['orderby'] ) )
echo '<input type="hidden" name="orderby" value="' . esc_attr( $_REQUEST['orderby'] ) . '" />';
if ( ! empty( $_REQUEST['order'] ) )
echo '<input type="hidden" name="order" value="' . esc_attr( $_REQUEST['order'] ) . '" />';
?>
<p class="search-box">
<label class="screen-reader-text" for="<?php echo $input_id ?>"><?php echo $text; ?>:</label>