Skip to content

Commit

Permalink
fix: add users only once
Browse files Browse the repository at this point in the history
  • Loading branch information
leogermani committed Dec 13, 2023
1 parent 7e8e827 commit df7f3d8
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ public static function get_authors_for_distribution( $post ) {
foreach ( $co_authors as $co_author ) {
if ( is_a( $co_author, 'WP_User' ) ) {
$authors[] = self::get_wp_user_for_distribution( $co_author );
continue;
}
$authors[] = self::get_guest_author_for_distribution( $co_author );
}
Expand Down

0 comments on commit df7f3d8

Please sign in to comment.