$switched_locale =
switch_to_locale( get_locale() );
$comment_author_domain = '';
if ( WP_Http::
is_ip_address( $comment->comment_author_IP
) ) { $comment_author_domain =
gethostbyaddr( $comment->comment_author_IP
);
} /*
* The blogname option is escaped with esc_html() on the way into the database in sanitize_option().
* We want to reverse this for the plain text arena of emails.
*/
$blogname =
wp_specialchars_decode( get_option( 'blogname'
), ENT_QUOTES
);
$comment_content =
wp_specialchars_decode( $comment->comment_content
);
switch ( $comment->comment_type
) { case 'trackback':
/* translators: %s: Post title. */
$notify_message =
sprintf( __( 'New trackback on your post "%s"'
),
$post->post_title
) . "\r\n";
/* translators: 1: Trackback/pingback website name, 2: Website IP address, 3: Website hostname. */
$notify_message .=
sprintf( __( 'Website: %1$s (IP address: %2$s, %3$s)'
),
$comment->comment_author,
$comment->comment_author_IP,
$comment_author_domain ) . "\r\n";
/* translators: %s: Trackback/pingback/comment author URL. */
$notify_message .=
sprintf( __( 'URL: %s'
),
$comment->comment_author_url
) . "\r\n";
/* translators: %s: Comment text. */