Skip to content

Commit

Permalink
Merge pull request #657 from manzoorwanijk/patch-1
Browse files Browse the repository at this point in the history
Fix the number of arguments passed to "get_the_archive_title" callback
  • Loading branch information
rebeccahum authored Mar 18, 2019
2 parents 7730f78 + 1497946 commit 4e1b2d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions co-authors-plus.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ function __construct() {
add_action( 'set_object_terms', array( $this, 'clear_cache_on_terms_set' ), 10, 6 );

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

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

0 comments on commit 4e1b2d4

Please sign in to comment.