WordPress.org

Make WordPress Core

Changeset 17353


Ignore:
Timestamp:
01/22/11 18:36:54 (3 years ago)
Author:
nacin
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-list-table.php

    r17352 r17353  
    197197        $input_id = $input_id . '-search-input'; 
    198198 
     199        if ( ! empty( $_REQUEST['orderby'] ) ) 
     200            echo '<input type="hidden" name="orderby" value="' . esc_attr( $_REQUEST['orderby'] ) . '" />'; 
     201        if ( ! empty( $_REQUEST['order'] ) )  
     202            echo '<input type="hidden" name="order" value="' . esc_attr( $_REQUEST['order'] ) . '" />'; 
    199203?> 
    200204<p class="search-box"> 
Note: See TracChangeset for help on using the changeset viewer.