1441 | | |
1442 | | switch ( $comment->comment_type ) { |
1443 | | case 'trackback': |
1444 | | $notify_message = sprintf( __( 'New trackback on your post "%s"' ), $post->post_title ) . "\r\n"; |
1445 | | /* translators: 1: website name, 2: website IP, 3: website hostname */ |
1446 | | $notify_message .= sprintf( __('Website: %1$s (IP: %2$s, %3$s)'), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; |
1447 | | $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; |
1448 | | $notify_message .= sprintf( __( 'Comment: %s' ), "\r\n" . $comment->comment_content ) . "\r\n\r\n"; |
1449 | | $notify_message .= __( 'You can see all trackbacks on this post here:' ) . "\r\n"; |
1450 | | /* translators: 1: blog name, 2: post title */ |
1451 | | $subject = sprintf( __('[%1$s] Trackback: "%2$s"'), $blogname, $post->post_title ); |
1452 | | break; |
1453 | | case 'pingback': |
1454 | | $notify_message = sprintf( __( 'New pingback on your post "%s"' ), $post->post_title ) . "\r\n"; |
1455 | | /* translators: 1: website name, 2: website IP, 3: website hostname */ |
1456 | | $notify_message .= sprintf( __('Website: %1$s (IP: %2$s, %3$s)'), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; |
1457 | | $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; |
1458 | | $notify_message .= sprintf( __( 'Comment: %s' ), "\r\n" . $comment->comment_content ) . "\r\n\r\n"; |
1459 | | $notify_message .= __( 'You can see all pingbacks on this post here:' ) . "\r\n"; |
1460 | | /* translators: 1: blog name, 2: post title */ |
1461 | | $subject = sprintf( __('[%1$s] Pingback: "%2$s"'), $blogname, $post->post_title ); |
1462 | | break; |
1463 | | default: // Comments |
1464 | | $notify_message = sprintf( __( 'New comment on your post "%s"' ), $post->post_title ) . "\r\n"; |
1465 | | /* translators: 1: comment author, 2: author IP, 3: author domain */ |
1466 | | $notify_message .= sprintf( __( 'Author: %1$s (IP: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; |
1467 | | $notify_message .= sprintf( __( 'Email: %s' ), $comment->comment_author_email ) . "\r\n"; |
1468 | | $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; |
1469 | | $notify_message .= sprintf( __('Comment: %s' ), "\r\n" . $comment->comment_content ) . "\r\n\r\n"; |
1470 | | $notify_message .= __( 'You can see all comments on this post here:' ) . "\r\n"; |
1471 | | /* translators: 1: blog name, 2: post title */ |
1472 | | $subject = sprintf( __('[%1$s] Comment: "%2$s"'), $blogname, $post->post_title ); |
1473 | | break; |
1474 | | } |
| 1439 | $notify_message = sprintf( __( 'New %1s on your post "%2s"' ), get_comment_type( $comment_id ), $post->post_title ) . "\r\n"; |
| 1440 | $subject = sprintf( __('[%1$s] %2$s: "%3$s"'), $blogname, get_comment_type( $comment_id ), $post->post_title ); |
| 1441 | /* translators: 1: blog name, 2: post title */ |
| 1442 | $notify_message .= get_comment_notify_text( $comment_id ); |
| 1443 | $notify_message .= sprintf( __( 'You can see all %s on this post here:' ), get_comment_type( $comment_id ) ) . "\r\n"; |
1577 | | switch ( $comment->comment_type ) { |
1578 | | case 'trackback': |
1579 | | $notify_message = sprintf( __('A new trackback on the post "%s" is waiting for your approval'), $post->post_title ) . "\r\n"; |
1580 | | $notify_message .= get_permalink($comment->comment_post_ID) . "\r\n\r\n"; |
1581 | | /* translators: 1: website name, 2: website IP, 3: website hostname */ |
1582 | | $notify_message .= sprintf( __( 'Website: %1$s (IP: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; |
1583 | | $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; |
1584 | | $notify_message .= __('Trackback excerpt: ') . "\r\n" . $comment->comment_content . "\r\n\r\n"; |
1585 | | break; |
1586 | | case 'pingback': |
1587 | | $notify_message = sprintf( __('A new pingback on the post "%s" is waiting for your approval'), $post->post_title ) . "\r\n"; |
1588 | | $notify_message .= get_permalink($comment->comment_post_ID) . "\r\n\r\n"; |
1589 | | /* translators: 1: website name, 2: website IP, 3: website hostname */ |
1590 | | $notify_message .= sprintf( __( 'Website: %1$s (IP: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; |
1591 | | $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; |
1592 | | $notify_message .= __('Pingback excerpt: ') . "\r\n" . $comment->comment_content . "\r\n\r\n"; |
1593 | | break; |
1594 | | default: // Comments |
1595 | | $notify_message = sprintf( __('A new comment on the post "%s" is waiting for your approval'), $post->post_title ) . "\r\n"; |
1596 | | $notify_message .= get_permalink($comment->comment_post_ID) . "\r\n\r\n"; |
1597 | | $notify_message .= sprintf( __( 'Author: %1$s (IP: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; |
1598 | | $notify_message .= sprintf( __( 'Email: %s' ), $comment->comment_author_email ) . "\r\n"; |
1599 | | $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; |
1600 | | $notify_message .= sprintf( __( 'Comment: %s' ), "\r\n" . $comment->comment_content ) . "\r\n\r\n"; |
1601 | | break; |
1602 | | } |
1603 | | |