Ticket #1698 (closed defect (bug): fixed)
Comment notification emails are not being sent
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | Administration | Version: | 1.6 |
| Severity: | major | Keywords: | comment email notification bg|has-patch bg|commit bg|squashed |
| Cc: |
Description
The emails to notify of new comments are not being sent.
Attachments
Change History
comment:1
MtDewVirus — 7 years ago
ringmaster — 7 years ago
-
attachment
pluggable-functions.php.diff
added
Patch to use new caps structure for user data in this function.
comment:3
markjaquith — 7 years ago
- Keywords bg|has-patch bg|commit added; bg|patch removed
- Owner changed from anonymous to markjaquith
- Status changed from new to assigned
comment:4
markjaquith — 7 years ago
Just chiming in to say that I definitely tested this patch, and it definitely fixes the problem. Go go Gadget commit!
- Status changed from assigned to closed
- Resolution set to fixed
- Milestone set to 1.6
Note: See
TracTickets for help on using
tickets.

With http://trac.wordpress.org/changeset/2827, the following line was removed from function wp_notify_postauthor
$user = $wpdb->get_row("SELECT * FROM $wpdb->users WHERE ID='$post->post_author' LIMIT 1");
This causes the next line to always return false because $user isn't set. if ( == $user->user_email) return false; If there's no email to send the comment to Comment notificatons will never be sent.