[wp-trac] [WordPress Trac] #45089: Update WP_List_Table::get_sortable_columns() to support 'asc' and 'desc' arguments
WordPress Trac
noreply at wordpress.org
Tue Jun 23 23:13:50 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
-------------------------------------------------+-------------------------
Changes (by whyisjake):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"48151" 48151]:
{{{
#!CommitTicketReference repository="" revision="48151"
Administration: Update `WP_List_Table::get_sortable_columns()` to support
`asc` and `desc` arguments.
This makes the API a little more clear, whereas setting `false` used to
mean `asc` and `true` meant `desc`, you can now use those directly, while
maintaining back-compat.
Fixes #45089.
Props Tkama, SergeyBiryukov, shital-patel, desrosj, birgire,
davidbaumwald.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45089#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list