@@ -81,8 +81,8 @@ public function init()
81
81
add_action ('admin_head ' , array ($ this , 'remove_quick_edit_authors_box ' ));
82
82
83
83
add_filter ('posts_where ' , array ($ this , 'posts_where_filter ' ), 10 , 2 );
84
- add_filter ('posts_join ' , array ($ this , 'posts_join_filter ' ));
85
- add_filter ('posts_groupby ' , array ($ this , 'posts_groupby_filter ' ));
84
+ add_filter ('posts_join ' , array ($ this , 'posts_join_filter ' ), 10 , 2 );
85
+ add_filter ('posts_groupby ' , array ($ this , 'posts_groupby_filter ' ), 10 , 2 );
86
86
87
87
add_action ('load-edit.php ' , array ($ this , 'load_edit ' ));
88
88
@@ -862,9 +862,9 @@ public function posts_where_filter($where, $wp_query)
862
862
return $ where ;
863
863
}
864
864
865
- public function posts_join_filter ($ join )
865
+ public function posts_join_filter ($ join, $ wp_query )
866
866
{
867
- global $ wp_query , $ wpdb ;
867
+ global $ wpdb ;
868
868
869
869
if (method_exists ($ wp_query , 'is_author ' ) && $ wp_query ->is_author ()) {
870
870
if (!$ this ->is_post_type_enabled ($ wp_query ->query_vars ['post_type ' ], $ this ->module )) {
@@ -890,9 +890,9 @@ public function posts_join_filter($join)
890
890
return $ join ;
891
891
}
892
892
893
- public function posts_groupby_filter ($ groupby )
893
+ public function posts_groupby_filter ($ groupby, $ wp_query )
894
894
{
895
- global $ wp_query , $ wpdb ;
895
+ global $ wpdb ;
896
896
897
897
if (method_exists ($ wp_query , 'is_author ' ) && $ wp_query ->is_author ()) {
898
898
if (!$ this ->is_post_type_enabled ($ wp_query ->query_vars ['post_type ' ], $ this ->module )) {
0 commit comments