Changeset 61179 for trunk/src/wp-includes/comment.php
- Timestamp:
- 11/07/2025 02:05:43 PM (5 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/comment.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment.php
r61144 r61179 2426 2426 function wp_new_comment_notify_postauthor( $comment_id ) { 2427 2427 $comment = get_comment( $comment_id ); 2428 2429 $maybe_notify = get_option( 'comments_notify' ); 2428 $is_note = ( $comment && 'note' === $comment->comment_type ); 2429 2430 $maybe_notify = $is_note ? get_option( 'wp_notes_notify' ) : get_option( 'comments_notify' ); 2430 2431 2431 2432 /** … … 2448 2449 } 2449 2450 2450 // Only send notifications for approved comments. 2451 if ( ! isset( $comment->comment_approved ) || '1' !== $comment->comment_approved ) { 2452 return false; 2451 // Send notifications for approved comments and all notes. 2452 if ( 2453 ! isset( $comment->comment_approved ) || 2454 ( '1' !== $comment->comment_approved && ! $is_note ) ) { 2455 return false; 2453 2456 } 2454 2457
Note: See TracChangeset
for help on using the changeset viewer.