[wp-trac] [WordPress Trac] #31364: Order By Description does not work in edit-tags.php
WordPress Trac
noreply at wordpress.org
Tue Feb 17 17:04:25 UTC 2015
#31364: Order By Description does not work in edit-tags.php
--------------------------+-----------------------------
Reporter: neil_pie | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: trunk
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
In WP_Terms_List_Table, 'description' is defined as a sortable column, yet
when clicking on the column header in the UI, the table sorts by name
instead.
This seems to be because 'description' is missed out of the predefined
arguments for the 'orderby' parameter in get_terms(), and so the default
orderby of `t.name` is applied.
This patch adds 'description' as an option, ordering on the
`tt.descripton` field
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31364>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list