[wp-trac] [WordPress Trac] #43960: Support for sorting columns in WP_Privacy_Requests_Table

WordPress Trac noreply at wordpress.org
Fri May 4 13:02:19 UTC 2018


#43960: Support for sorting columns in WP_Privacy_Requests_Table
---------------------------+------------------------------
 Reporter:  birgire        |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  General        |     Version:  trunk
 Severity:  normal         |  Resolution:
 Keywords:  gdp has-patch  |     Focuses:  administration
---------------------------+------------------------------
Changes (by birgire):

 * keywords:  gdp => gdp has-patch


Comment:

 [attachment:43960.diff] is a first pass that:
 - Adds support for sorting for the {{{requester}}} and {{{requested}}}
 columns, that are mapped to {{{title}}} and {{{post_date_gmt}}} db cols
 ordering.
 - Uses {{{paged}}} instead of {{{offset}}} query parameter.
 - Doesn't override the default search order.
 - Sets the default {{{requested}}} order direction as ''descending''.
 - Sets the default {{{requester}}} order direction as ''ascending''.
 - Sets the {{{screen}}} argument for the instantiation of the table
 objects, to avoid setting {{{$this->_column_headers}}} directly.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/43960#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list