|
@@ 131-143 (lines=13) @@
|
| 128 |
|
$notify_message .= sprintf( __( 'Permalink: %s' ), get_comment_link( $comment ) ) . "\r\n"; |
| 129 |
|
|
| 130 |
|
if ( user_can( $post->post_author, 'edit_comment', $comment->comment_ID ) ) { |
| 131 |
|
if ( EMPTY_TRASH_DAYS ) { |
| 132 |
|
$notify_message .= sprintf( |
| 133 |
|
__( 'Trash it: %s' ), $moderate_on_wpcom |
| 134 |
|
? "https://wordpress.com/comment/{$primary_site_slug}/{$comment_id}?action=trash" |
| 135 |
|
: admin_url( "comment.php?action=trash&c={$comment->comment_ID}#wpbody-content" ) |
| 136 |
|
) . "\r\n"; |
| 137 |
|
} else { |
| 138 |
|
$notify_message .= sprintf( |
| 139 |
|
__( 'Delete it: %s' ), $moderate_on_wpcom |
| 140 |
|
? "https://wordpress.com/comment/{$primary_site_slug}/{$comment_id}?action=delete" |
| 141 |
|
: admin_url( "comment.php?action=delete&c={$comment->comment_ID}#wpbody-content" ) |
| 142 |
|
) . "\r\n"; |
| 143 |
|
} |
| 144 |
|
$notify_message .= sprintf( |
| 145 |
|
__( 'Spam it: %s' ), $moderate_on_wpcom ? |
| 146 |
|
"https://wordpress.com/comment/{$primary_site_slug}/{$comment_id}?action=spam" |
|
@@ 295-309 (lines=15) @@
|
| 292 |
|
: admin_url( "comment.php?action=approve&c={$comment_id}#wpbody-content" ) |
| 293 |
|
) . "\r\n"; |
| 294 |
|
|
| 295 |
|
if ( EMPTY_TRASH_DAYS ) { |
| 296 |
|
/* translators: Comment moderation. 1: Comment action URL */ |
| 297 |
|
$notify_message .= sprintf( |
| 298 |
|
__( 'Trash it: %s' ), $moderate_on_wpcom |
| 299 |
|
? "https://wordpress.com/comment/{$primary_site_slug}/{$comment_id}?action=trash" |
| 300 |
|
: admin_url( "comment.php?action=trash&c={$comment_id}#wpbody-content" ) |
| 301 |
|
) . "\r\n"; |
| 302 |
|
} else { |
| 303 |
|
/* translators: Comment moderation. 1: Comment action URL */ |
| 304 |
|
$notify_message .= sprintf( |
| 305 |
|
__( 'Delete it: %s' ), $moderate_on_wpcom |
| 306 |
|
? "https://wordpress.com/comment/{$primary_site_slug}/{$comment_id}?action=delete" |
| 307 |
|
: admin_url( "comment.php?action=delete&c={$comment_id}#wpbody-content" ) |
| 308 |
|
) . "\r\n"; |
| 309 |
|
} |
| 310 |
|
|
| 311 |
|
/* translators: Comment moderation. 1: Comment action URL */ |
| 312 |
|
$notify_message .= sprintf( |