WordPress.org

Make WordPress Core

Ticket #22922: pluggable.php.diff

File pluggable.php.diff, 666 bytes (added by chipbennett, 19 months ago)
  • pluggable.php

     
    10701070        $subject = apply_filters('comment_notification_subject', $subject, $comment_id); 
    10711071        $message_headers = apply_filters('comment_notification_headers', $message_headers, $comment_id); 
    10721072 
    1073         @wp_mail( $author->user_email, $subject, $notify_message, $message_headers ); 
     1073        $email_to = apply_filters( 'comment_notification_email_to', array( $author->user_email ) ); 
     1074         
     1075        foreach ( $email_to as $email ) 
     1076                @wp_mail($email, $subject, $notify_message, $message_headers); 
    10741077 
    10751078        return true; 
    10761079}