[wp-trac] [WordPress Trac] #43705: Respect custom taxonomy term order on admin edit page when show_ui and sort are both true

WordPress Trac noreply at wordpress.org
Thu Apr 5 18:40:17 UTC 2018


#43705: Respect custom taxonomy term order on admin edit page when show_ui and sort
are both true
--------------------------+-----------------------------
 Reporter:  seanleavey    |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Taxonomy      |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 This is identical to the report in #40436, but that has been awaiting
 review for 12 months and might have fallen under the radar due to being
 set to version 4.7. The issue is still present in 4.9.5. The order of
 terms is not respected on e.g. the admin post list. It displays
 alphabetically even when `sort` is set to `true` in `register_taxonomy`
 (in addition to `show_ui` set to `true` to make it show on the post list).

 The order is not respected because the call to `wp_get_object_terms` via
 `column_default` in `WP_Posts_List_Table` does not supply an `$args` array
 telling it how to sort. WordPress should probably supply this array with
 the `order_by` key set if the taxonomy's `sort` attribute is `true`.

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


More information about the wp-trac mailing list