Ticket #14078: send_notification_later.patch
| File send_notification_later.patch, 743 bytes (added by , 16 years ago) |
|---|
-
wp-includes/comment.php
1317 1317 case 'approve': 1318 1318 case '1': 1319 1319 $status = '1'; 1320 if ( get_option('comments_notify') ) {1321 $comment = get_comment($comment_id);1322 wp_notify_postauthor($comment_id, $comment->comment_type);1323 }1324 1320 break; 1325 1321 case 'spam': 1326 1322 $status = 'spam'; … … 1350 1346 1351 1347 wp_update_comment_count($comment->comment_post_ID); 1352 1348 1349 if ( get_option('comments_notify') && $status == 1 ) { 1350 //$comment = get_comment($comment_id); 1351 wp_notify_postauthor($comment_id, $comment->comment_type); 1352 } 1353 1353 1354 return true; 1354 1355 } 1355 1356