Changeset 26358 for trunk/src/wp-includes/comment.php
- Timestamp:
- 11/24/2013 04:25:44 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment.php
r26081 r26358 1415 1415 1416 1416 if ( 'spam' !== $commentdata['comment_approved'] ) { // If it's spam save it silently for later crunching 1417 if ( '0' == $commentdata['comment_approved'] ) 1418 wp_notify_moderator($comment_ID); 1419 1420 $post = get_post($commentdata['comment_post_ID']); // Don't notify if it's your own comment 1421 1422 if ( get_option('comments_notify') && $commentdata['comment_approved'] && ( ! isset( $commentdata['user_id'] ) || $post->post_author != $commentdata['user_id'] ) ) 1423 wp_notify_postauthor($comment_ID, isset( $commentdata['comment_type'] ) ? $commentdata['comment_type'] : '' ); 1417 if ( '0' == $commentdata['comment_approved'] ) { 1418 wp_notify_moderator( $comment_ID ); 1419 } 1420 1421 if ( get_option('comments_notify') && $commentdata['comment_approved'] ) { 1422 $post = get_post( $commentdata['comment_post_ID'] ); 1423 // Don't notify if it's your own comment 1424 if ( ! isset( $commentdata['user_id'] ) || $post->post_author != $commentdata['user_id'] ) { 1425 wp_notify_postauthor( $comment_ID ); 1426 } 1427 } 1424 1428 } 1425 1429 … … 1454 1458 $status = '1'; 1455 1459 if ( get_option('comments_notify') ) { 1456 $comment = get_comment($comment_id); 1457 wp_notify_postauthor($comment_id, $comment->comment_type); 1460 wp_notify_postauthor( $comment_id ); 1458 1461 } 1459 1462 break;
Note: See TracChangeset
for help on using the changeset viewer.