WordPress.org

Make WordPress Core

Changeset 11387


Ignore:
Timestamp:
05/18/09 18:36:04 (6 years ago)
Author:
ryan
Message:

Don't notify post author of own comments. PrProps josephscott. fixes #8695

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/pluggable.php

    r11204 r11387  
    953953    $user    = get_userdata( $post->post_author ); 
    954954    $current_user = wp_get_current_user(); 
     955 
     956    if ( $comment->user_id == $post->post_author ) return false; // The author moderated a comment on his own post 
    955957     
    956     if ( $current_user->ID == $user->ID ) return false; // The author moderated a comment on his own post 
    957  
    958958    if ('' == $user->user_email) return false; // If there's no email to send the comment to 
    959959 
Note: See TracChangeset for help on using the changeset viewer.