From f222062180b7ed91eb320596bf65988a020f342f Mon Sep 17 00:00:00 2001 From: Cooper Dalrymple Date: Wed, 27 May 2026 12:33:51 -0500 Subject: [PATCH] Remove `$accepted_args` argument on `remove_filter` and `remove_action` --- inc/class-sort.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/inc/class-sort.php b/inc/class-sort.php index 8a72c77..36effac 100644 --- a/inc/class-sort.php +++ b/inc/class-sort.php @@ -116,18 +116,18 @@ final class Sort { if (empty($this->relationships)) return; // Post Types - remove_action('pre_get_posts', [$this, 'pre_get_posts'], 10, 1); + remove_action('pre_get_posts', [$this, 'pre_get_posts'], 10); remove_filter('get_previous_post_where', [$this, 'previous_post_where']); remove_filter('get_previous_post_sort', [$this, 'previous_post_sort']); remove_filter('get_next_post_where', [$this, 'next_post_where']); remove_filter('get_next_post_sort', [$this, 'next_post_sort']); // Taxonomy - remove_filter('terms_clauses', [$this, 'terms_clauses'], 10, 3); - remove_filter('get_terms_orderby', [$this, 'get_terms_orderby'], 10, 3); - remove_filter('wp_get_object_terms', [$this, 'wp_get_object_terms'], 10, 4); - remove_filter('get_terms', [$this, 'get_terms'], 10, 4); - remove_action('create_term', [$this, 'add_term_relationship'], 10, 3); + remove_filter('terms_clauses', [$this, 'terms_clauses'], 10); + remove_filter('get_terms_orderby', [$this, 'get_terms_orderby'], 10); + remove_filter('wp_get_object_terms', [$this, 'wp_get_object_terms'], 10); + remove_filter('get_terms', [$this, 'get_terms'], 10); + remove_action('create_term', [$this, 'add_term_relationship'], 10); } public function current_screen() {