[wp-trac] [WordPress Trac] #45089: Update WP_List_Table::get_sortable_columns() to support 'asc' and 'desc' arguments

WordPress Trac noreply at wordpress.org
Thu Jun 25 11:33:38 UTC 2020


#45089: Update WP_List_Table::get_sortable_columns() to support 'asc' and 'desc'
arguments
-------------------------------------------------+-------------------------
 Reporter:  Tkama                                |       Owner:  birgire
     Type:  enhancement                          |      Status:  closed
 Priority:  normal                               |   Milestone:  5.5
Component:  Administration                       |     Version:  4.9.8
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch needs-testing has-unit-    |     Focuses:
  tests commit                                   |  administration
-------------------------------------------------+-------------------------

Comment (by SergeyBiryukov):

 In [changeset:"48165" 48165]:
 {{{
 #!CommitTicketReference repository="" revision="48165"
 Administration: Correct and simplify the logic for `asc` and `desc`
 arguments in `WP_List_Table::get_sortable_columns()`.

 Setting the initial order didn't work as expected due to reversed logic.

 Follow-up to [48151].

 See #45089.
 }}}

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


More information about the wp-trac mailing list