Check all taxonomies if any of them should be sorted#104
Conversation
…dering - Fix post order being scrambled on MariaDB / MySQL 8 when menu_order is re-normalized after gaps appear: refresh() now re-numbers deterministically in PHP instead of via a MySQL user-variable (@row_number) ranking whose evaluation order is undefined on those databases. Props @alexgw and @sebastiencyr (#147, #119). - Honor `orderby=include` in get_terms() / wp_get_object_terms() instead of overriding it with the custom term order; the term filters now receive $args. Props @glebkema (#67, #66). - Apply custom term ordering when any queried taxonomy is sortable (not only the first) and keep the caller's orderby as a fallback tiebreaker. Props @goaround (#104). No asset or data-format changes; fully backward compatible with 2.7.0. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Thank you @goaround! 🙏 The core idea here was a good catch: only the first taxonomy in a multi-taxonomy query was being considered, and the original Addressed in 2.7.1 (just released). One small note for posterity: the original diff referenced |
Applies the
orderbyt.term_orderif any of the queried taxonomies should be orderby and adds the default orderby as a fallback