Skip to content

Commit

Permalink
Update taxonomy-terms-order filters for new method format for the plu…
Browse files Browse the repository at this point in the history
…gin.

See #3089. See #3449.
  • Loading branch information
boonebgorges committed Oct 17, 2024
1 parent 6be1f14 commit 66e6b11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wp-content/plugins/wds-citytech/wds-citytech.php
Original file line number Diff line number Diff line change
Expand Up @@ -1432,14 +1432,14 @@ function ra_copy_blog_page( $group_id ) {
*/
$taxonomy_terms_order_is_active = function_exists( 'TO_apply_order_filter' );
if ( $taxonomy_terms_order_is_active ) {
remove_filter( 'terms_clauses', 'TO_apply_order_filter', 10 );
add_filter( 'to/get_terms_orderby/ignore', '__return_true' );
}

OpenLab\NavMenus\add_group_menu_item( $group_id );
OpenLab\NavMenus\add_home_menu_item();

if ( $taxonomy_terms_order_is_active ) {
add_filter( 'terms_clauses', 'TO_apply_order_filter', 10, 3 );
remove_filter( 'to/get_terms_orderby/ignore', '__return_true' );
}

restore_current_blog();
Expand Down

0 comments on commit 66e6b11

Please sign in to comment.