Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions inc/clean-emails.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ private function add_comment_basics(): void {
* @return void
*/
private function add_author_line(): void {
if ( $this->comment->comment_type === 'comment' ) {
if ( $this->comment->comment_type !== 'pingback' && $this->comment->comment_type !== 'trackback' ) {
/* translators: %1$s is replaced with the comment author's name, %2$s is replaced with the comment author's email */
$this->message .= \sprintf( \esc_html__( 'Author: %1$s (%2$s)', 'yoast-comment-hacks' ), \esc_html( $this->comment->comment_author ), '<a href="' . \esc_url( 'mailto:' . $this->comment->comment_author_email ) . '">' . \esc_html( $this->comment->comment_author_email ) . '</a>' ) . '<br />';
}
Expand All @@ -197,7 +197,7 @@ private function add_author_line(): void {
* @return void
*/
private function add_content_line(): void {
if ( $this->comment->comment_type === 'comment' ) {
if ( $this->comment->comment_type !== 'pingback' && $this->comment->comment_type !== 'trackback' ) {
$this->message .= \esc_html__( 'Comment:', 'yoast-comment-hacks' );
}
else {
Expand Down
Loading