WordPress.org

Make WordPress Core

#25756 closed enhancement (fixed)

Add a filter to Auto Update debug email

Reported by: pento Owned by: pento
Milestone: 3.8 Priority: normal
Severity: normal Version: 3.7
Component: Upgrade/Install Keywords: has-patch dev-feedback
Focuses: Cc:

Description

The core auto update notification email has a filter auto_core_update_email. There should be an equivalent filter for the debug email, too.

This would be particularly useful for admins who want to change the 'to' address of the notification email, they would expect the debug email to go to the same place.

Attachments (2)

25756.diff (1.5 KB) - added by pento 21 months ago.
25756.2.diff (1.5 KB) - added by pento 21 months ago.

Download all attachments as: .zip

Change History (6)

@pento21 months ago

comment:1 @pento21 months ago

  • Owner set to pento
  • Status changed from new to accepted

comment:2 @nacin21 months ago

Sounds good. I would like this that way I can pipe all emails directly to my error log.

The filter name should likely be automatic_updates_debug_email, for consistency with automatic_updates_send_debug_email.

The auto_core_update_email and auto_core_update_send_email hooks are particular to *core*, hence the difference in naming. I tried to use "automatic updates" in the general and "auto core update" in the specific.

@pento21 months ago

comment:3 @pento21 months ago

No prob, renamed the filter to automatic_updates_debug_email in attachment:25756.2.diff.

comment:4 @dd3221 months ago

  • Resolution set to fixed
  • Status changed from accepted to closed

In 26013:

Add a filter to the Background Updates debug email, matches the filter used on the non-debug post-update emails. Props pento. Fixes #25756

Note: See TracTickets for help on using tickets.