|
@@ 89-99 (lines=11) @@
|
| 86 |
|
$primary_site_slug = Jetpack::build_raw_urls( get_home_url() ); |
| 87 |
|
|
| 88 |
|
switch ( $comment->comment_type ) { |
| 89 |
|
case 'trackback': |
| 90 |
|
/* translators: 1: Post title */ |
| 91 |
|
$notify_message = sprintf( __( 'New trackback on your post "%s"' ), $post->post_title ) . "\r\n"; |
| 92 |
|
/* translators: 1: Trackback/pingback website name, 2: website IP address, 3: website hostname */ |
| 93 |
|
$notify_message .= sprintf( __( 'Website: %1$s (IP address: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; |
| 94 |
|
$notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; |
| 95 |
|
$notify_message .= sprintf( __( 'Comment: %s' ), "\r\n" . $comment_content ) . "\r\n\r\n"; |
| 96 |
|
$notify_message .= __( 'You can see all trackbacks on this post here:' ) . "\r\n"; |
| 97 |
|
/* translators: 1: blog name, 2: post title */ |
| 98 |
|
$subject = sprintf( __( '[%1$s] Trackback: "%2$s"' ), $blogname, $post->post_title ); |
| 99 |
|
break; |
| 100 |
|
case 'pingback': |
| 101 |
|
/* translators: 1: Post title */ |
| 102 |
|
$notify_message = sprintf( __( 'New pingback on your post "%s"' ), $post->post_title ) . "\r\n"; |
|
@@ 100-110 (lines=11) @@
|
| 97 |
|
/* translators: 1: blog name, 2: post title */ |
| 98 |
|
$subject = sprintf( __( '[%1$s] Trackback: "%2$s"' ), $blogname, $post->post_title ); |
| 99 |
|
break; |
| 100 |
|
case 'pingback': |
| 101 |
|
/* translators: 1: Post title */ |
| 102 |
|
$notify_message = sprintf( __( 'New pingback on your post "%s"' ), $post->post_title ) . "\r\n"; |
| 103 |
|
/* translators: 1: Trackback/pingback website name, 2: website IP address, 3: website hostname */ |
| 104 |
|
$notify_message .= sprintf( __( 'Website: %1$s (IP address: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; |
| 105 |
|
$notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; |
| 106 |
|
$notify_message .= sprintf( __( 'Comment: %s' ), "\r\n" . $comment_content ) . "\r\n\r\n"; |
| 107 |
|
$notify_message .= __( 'You can see all pingbacks on this post here:' ) . "\r\n"; |
| 108 |
|
/* translators: 1: blog name, 2: post title */ |
| 109 |
|
$subject = sprintf( __( '[%1$s] Pingback: "%2$s"' ), $blogname, $post->post_title ); |
| 110 |
|
break; |
| 111 |
|
default: // Comments |
| 112 |
|
$notify_message = sprintf( __( 'New comment on your post "%s"' ), $post->post_title ) . "\r\n"; |
| 113 |
|
/* translators: 1: comment author, 2: comment author's IP address, 3: comment author's hostname */ |
|
@@ 261-273 (lines=13) @@
|
| 258 |
|
$notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; |
| 259 |
|
$notify_message .= __( 'Pingback excerpt: ' ) . "\r\n" . $comment_content . "\r\n\r\n"; |
| 260 |
|
break; |
| 261 |
|
default: // Comments |
| 262 |
|
/* translators: 1: Post title */ |
| 263 |
|
$notify_message = sprintf( __( 'A new comment on the post "%s" is waiting for your approval' ), $post->post_title ) . "\r\n"; |
| 264 |
|
$notify_message .= get_permalink( $comment->comment_post_ID ) . "\r\n\r\n"; |
| 265 |
|
/* translators: 1: Comment author name, 2: comment author's IP address, 3: comment author's hostname */ |
| 266 |
|
$notify_message .= sprintf( __( 'Author: %1$s (IP address: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; |
| 267 |
|
/* translators: 1: Comment author URL */ |
| 268 |
|
$notify_message .= sprintf( __( 'Email: %s' ), $comment->comment_author_email ) . "\r\n"; |
| 269 |
|
/* translators: 1: Trackback/pingback/comment author URL */ |
| 270 |
|
$notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; |
| 271 |
|
/* translators: 1: Comment text */ |
| 272 |
|
$notify_message .= sprintf( __( 'Comment: %s' ), "\r\n" . $comment_content ) . "\r\n\r\n"; |
| 273 |
|
break; |
| 274 |
|
} |
| 275 |
|
|
| 276 |
|
/** This filter is documented in core/src/wp-includes/pluggable.php */ |