Make WordPress Core

Ticket #14078: 14078.patch

File 14078.patch, 636 bytes (added by NickDuncan, 11 years ago)

Updated patch as the last patch was done 4 years ago

  • src/wp-includes/comment.php

     
    21342134                case 'approve':
    21352135                case '1':
    21362136                        $status = '1';
    2137                         if ( get_option('comments_notify') ) {
    2138                                 wp_notify_postauthor( $comment_id );
    2139                         }
    21402137                        break;
    21412138                case 'spam':
    21422139                        $status = 'spam';
     
    21562153                else
    21572154                        return false;
    21582155        }
     2156        if ( get_option('comments_notify') && $status == '1') {
     2157            wp_notify_postauthor( $comment_id );
     2158        }
    21592159
    21602160        clean_comment_cache($comment_id);
    21612161