[wp-trac] [WordPress Trac] #32416: List table: the link on the initial sorted column header should always change the initial order

WordPress Trac noreply at wordpress.org
Fri May 15 17:42:28 UTC 2015


#32416: List table: the link on the initial sorted column header should always
change the initial order
-------------------------------+-----------------------------
 Reporter:  afercia            |      Owner:
     Type:  defect (bug)       |     Status:  new
 Priority:  normal             |  Milestone:  Awaiting Review
Component:  Administration     |    Version:  4.2
 Severity:  normal             |   Keywords:
  Focuses:  ui, accessibility  |
-------------------------------+-----------------------------
 Please consider the following 2 examples:

 - in the Posts list the initial view is ordered by date and in descending
 order but when you click the link on the "Date" table header you get the
 same descending order

 - in the Users list the initial view is ordered by login (username) and in
 ascending order but when you click the link on "Username" you get the same
 ascending order

 Users are forced to click two times to get what they want. This happens
 just in the initial view, the following times `$_GET['orderby']` and
 `$_GET['order']` are set and the links are set up properly.

 As far as I see, in some cases the fix would be simple (e.g. for Users,
 see `get_sortable_columns()`) but in other cases like Posts and Pages it's
 not so simple. Perhaps a more general solution would be making
 `WP_List_Table` aware of each screen initial "orderby" and "order" but
 this would require some changes to the main class and some leads eyes on
 it. Any thoughts more than welcome.

 See related #32170 for which I'd say this is a blocker.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32416>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list