Skip to content

Commit 4e1b2d4

Browse files
authored
Merge pull request #657 from manzoorwanijk/patch-1
Fix the number of arguments passed to "get_the_archive_title" callback
2 parents 7730f78 + 1497946 commit 4e1b2d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

co-authors-plus.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ function __construct() {
132132
add_action( 'set_object_terms', array( $this, 'clear_cache_on_terms_set' ), 10, 6 );
133133

134134
// Filter to correct author on author archive page
135-
add_filter( 'get_the_archive_title', array( $this, 'filter_author_archive_title'), 10, 2 );
135+
add_filter( 'get_the_archive_title', array( $this, 'filter_author_archive_title'), 10, 1 );
136136

137137
// Filter to display author image if exists instead of avatar
138138
add_filter( 'get_avatar_url', array( $this, 'filter_get_avatar_url' ), 10, 2 );
@@ -1878,4 +1878,4 @@ function cap_filter_comment_moderation_email_recipients( $recipients, $comment_i
18781878
function cap_get_coauthor_terms_for_post( $post_id ) {
18791879
global $coauthors_plus;
18801880
return $coauthors_plus->get_coauthor_terms_for_post( $post_id );
1881-
}
1881+
}

0 commit comments

Comments
 (0)