|
@@ 269-278 (lines=10) @@
|
| 266 |
|
$comment_content = wp_specialchars_decode( $comment->comment_content ); |
| 267 |
|
|
| 268 |
|
switch ( $comment->comment_type ) { |
| 269 |
|
case 'trackback': |
| 270 |
|
/* translators: 1: Post title */ |
| 271 |
|
$notify_message = sprintf( __( 'A new trackback on the post "%s" is waiting for your approval' ), $post->post_title ) . "\r\n"; |
| 272 |
|
$notify_message .= get_permalink( $comment->comment_post_ID ) . "\r\n\r\n"; |
| 273 |
|
/* translators: 1: Trackback/pingback website name, 2: website IP address, 3: website hostname */ |
| 274 |
|
$notify_message .= sprintf( __( 'Website: %1$s (IP address: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; |
| 275 |
|
/* translators: 1: Trackback/pingback/comment author URL */ |
| 276 |
|
$notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; |
| 277 |
|
$notify_message .= __( 'Trackback excerpt: ' ) . "\r\n" . $comment_content . "\r\n\r\n"; |
| 278 |
|
break; |
| 279 |
|
case 'pingback': |
| 280 |
|
/* translators: 1: Post title */ |
| 281 |
|
$notify_message = sprintf( __( 'A new pingback on the post "%s" is waiting for your approval' ), $post->post_title ) . "\r\n"; |
|
@@ 279-288 (lines=10) @@
|
| 276 |
|
$notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; |
| 277 |
|
$notify_message .= __( 'Trackback excerpt: ' ) . "\r\n" . $comment_content . "\r\n\r\n"; |
| 278 |
|
break; |
| 279 |
|
case 'pingback': |
| 280 |
|
/* translators: 1: Post title */ |
| 281 |
|
$notify_message = sprintf( __( 'A new pingback on the post "%s" is waiting for your approval' ), $post->post_title ) . "\r\n"; |
| 282 |
|
$notify_message .= get_permalink( $comment->comment_post_ID ) . "\r\n\r\n"; |
| 283 |
|
/* translators: 1: Trackback/pingback website name, 2: website IP address, 3: website hostname */ |
| 284 |
|
$notify_message .= sprintf( __( 'Website: %1$s (IP address: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; |
| 285 |
|
/* translators: 1: Trackback/pingback/comment author URL */ |
| 286 |
|
$notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; |
| 287 |
|
$notify_message .= __( 'Pingback excerpt: ' ) . "\r\n" . $comment_content . "\r\n\r\n"; |
| 288 |
|
break; |
| 289 |
|
default: // Comments. |
| 290 |
|
/* translators: 1: Post title */ |
| 291 |
|
$notify_message = sprintf( __( 'A new comment on the post "%s" is waiting for your approval' ), $post->post_title ) . "\r\n"; |