Fix TO_apply_order_filter
-
Hello,
I suggest you fix the “TO_apply_order_filter” filter in the taxonomy-terms-order / taxonomy-terms-order.php: 141 line by replacing this:if ($options['adminsort'] == "1") $clauses['orderby'] = 'ORDER BY t.term_order';
with this:
if ($options['adminsort'] == "1" && (!isset($args['ignore_term_order']) || $args['ignore_term_order'] !== TRUE)) $clauses['orderby'] = 'ORDER BY t.term_order';
Because if, as in my case, you are developing a plugin that involves the use of the get_terms function in the backend and you want to customize the orderby parameter, this is currently not possible.
Version: 1.5.7.3
Thank you,
Carlo
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Fix TO_apply_order_filter’ is closed to new replies.