@@ -23,7 +23,7 @@ public static function init() {
2323 if ( WP_DEBUG ) {
2424 // For testing outgoing comment email
2525 add_filter ( 'bulk_actions-edit-comments ' , array ( 'Linkbacks_Notifications ' , 'register_bulk_send ' ) );
26- add_filter ( 'handle_bulk_actions-edit-comments ' , array ( 'Linkbacks_Notifications ' , 'bulk_send_Notifications ' ), 10 , 3 );
26+ add_filter ( 'handle_bulk_actions-edit-comments ' , array ( 'Linkbacks_Notifications ' , 'bulk_send_notifications ' ), 10 , 3 );
2727 }
2828 }
2929
@@ -45,7 +45,7 @@ public static function register_bulk_send( $bulk_actions ) {
4545 /**
4646 * Handle Bulk Send Outgoing EMail
4747 */
48- public static function bulk_send_Notifications ( $ redirect_to , $ doaction , $ comment_ids ) {
48+ public static function bulk_send_notifications ( $ redirect_to , $ doaction , $ comment_ids ) {
4949 if ( ! in_array ( $ doaction , array ( 'resend_notification_email ' , 'resend_moderation_email ' , 'send_pushover_text ' ), true ) ) {
5050 return $ redirect_to ;
5151 }
@@ -77,6 +77,7 @@ public static function bulk_send_Notifications( $redirect_to, $doaction, $commen
7777 */
7878 public static function comment_notification_text ( $ notify_message , $ comment_id ) {
7979 $ comment = get_comment ( $ comment_id );
80+ $ post = get_post ( $ comment ->comment_post_ID );
8081 if ( ! Linkbacks_Handler::get_type ( $ comment ) ) {
8182 return $ notify_message ;
8283 }
@@ -88,7 +89,7 @@ public static function comment_notification_text( $notify_message, $comment_id )
8889 return $ notify_message ;
8990
9091 }
91-
92+
9293 /**
9394 * Generate the moderation text
9495 *
@@ -97,9 +98,11 @@ public static function comment_notification_text( $notify_message, $comment_id )
9798 */
9899 public static function moderate_text ( $ comment ) {
99100 $ comment = get_comment ( $ comment );
101+ /* translators: Comment moderation. 1: Comment action URL */
102+ $ message = sprintf ( __ ( 'Approve it: %s ' , 'semantic-linkbacks ' ), admin_url ( "comment.php?action=approve&c= {$ comment_id }#wpbody-content " ) ) . "\r\n" ;
100103 if ( EMPTY_TRASH_DAYS ) {
101104 /* translators: Trash it URL */
102- $ message = sprintf ( __ ( 'Trash it: %s ' , 'semantic-linkbacks ' ), admin_url ( "comment.php?action=trash&c= {$ comment ->comment_ID }#wpbody-content " ) ) . "\r\n" ;
105+ $ message . = sprintf ( __ ( 'Trash it: %s ' , 'semantic-linkbacks ' ), admin_url ( "comment.php?action=trash&c= {$ comment ->comment_ID }#wpbody-content " ) ) . "\r\n" ;
103106 } else {
104107 /* translators: Delete it URL */
105108 $ message .= sprintf ( __ ( 'Delete it: %s ' , 'semantic-linkbacks ' ), admin_url ( "comment.php?action=delete&c= {$ comment ->comment_ID }#wpbody-content " ) ) . "\r\n" ;
@@ -108,7 +111,7 @@ public static function moderate_text( $comment ) {
108111 $ message .= sprintf ( __ ( 'Spam it: %s ' , 'semantic-linkbacks ' ), admin_url ( "comment.php?action=spam&c= {$ comment ->comment_ID }#wpbody-content " ) ) . "\r\n" ;
109112 return $ message ;
110113 }
111-
114+
112115 /**
113116 * Filter the comment notification subject
114117 *
0 commit comments