Skip to content

Commit bb85119

Browse files
authored
Merge pull request #134 from RRZE-Webteam/dev
Update authors.php
2 parents d099116 + 6bfcb03 commit bb85119

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

modules/authors/authors.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ public function init()
8181
add_action('admin_head', array($this, 'remove_quick_edit_authors_box'));
8282

8383
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);
8686

8787
add_action('load-edit.php', array($this, 'load_edit'));
8888

@@ -862,9 +862,9 @@ public function posts_where_filter($where, $wp_query)
862862
return $where;
863863
}
864864

865-
public function posts_join_filter($join)
865+
public function posts_join_filter($join, $wp_query)
866866
{
867-
global $wp_query, $wpdb;
867+
global $wpdb;
868868

869869
if (method_exists($wp_query, 'is_author') && $wp_query->is_author()) {
870870
if (!$this->is_post_type_enabled($wp_query->query_vars['post_type'], $this->module)) {
@@ -890,9 +890,9 @@ public function posts_join_filter($join)
890890
return $join;
891891
}
892892

893-
public function posts_groupby_filter($groupby)
893+
public function posts_groupby_filter($groupby, $wp_query)
894894
{
895-
global $wp_query, $wpdb;
895+
global $wpdb;
896896

897897
if (method_exists($wp_query, 'is_author') && $wp_query->is_author()) {
898898
if (!$this->is_post_type_enabled($wp_query->query_vars['post_type'], $this->module)) {

0 commit comments

Comments
 (0)