Changeset 13801 for trunk/wp-includes/comment.php
- Timestamp:
- 03/22/2010 04:06:55 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/comment.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/comment.php
r13513 r13801 1275 1275 $post = &get_post($commentdata['comment_post_ID']); // Don't notify if it's your own comment 1276 1276 1277 if ( isset( $commentdata['user_id'] ) && get_option('comments_notify') && $commentdata['comment_approved'] && $post->post_author != $commentdata['user_id'])1277 if ( get_option('comments_notify') && $commentdata['comment_approved'] && ( ! isset( $commentdata['user_id'] ) || $post->post_author != $commentdata['user_id'] ) ) 1278 1278 wp_notify_postauthor($comment_ID, $commentdata['comment_type']); 1279 1279 }
Note: See TracChangeset
for help on using the changeset viewer.