Ticket #14078: 14078.patch
| File 14078.patch, 636 bytes (added by , 11 years ago) |
|---|
-
src/wp-includes/comment.php
2134 2134 case 'approve': 2135 2135 case '1': 2136 2136 $status = '1'; 2137 if ( get_option('comments_notify') ) {2138 wp_notify_postauthor( $comment_id );2139 }2140 2137 break; 2141 2138 case 'spam': 2142 2139 $status = 'spam'; … … 2156 2153 else 2157 2154 return false; 2158 2155 } 2156 if ( get_option('comments_notify') && $status == '1') { 2157 wp_notify_postauthor( $comment_id ); 2158 } 2159 2159 2160 2160 clean_comment_cache($comment_id); 2161 2161