WordPress.org

Make WordPress Core

Opened 8 months ago

Closed 8 months ago

Last modified 5 months ago

#51276 closed defect (bug) (fixed)

Allow attachments to be added to a recovery mode email

Reported by: desrosj Owned by: desrosj
Milestone: 5.6 Priority: low
Severity: normal Version: 5.2
Component: Site Health Keywords: has-patch commit has-dev-note
Focuses: administration Cc:

Description

wp_mail() allows attachments to be passed but the recovery mode email (more specifically the recovery_mode_email filter) does not support this.

Attachments (1)

51276.diff (1.8 KB) - added by desrosj 8 months ago.

Download all attachments as: .zip

Change History (7)

@desrosj
8 months ago

#1 @TimothyBlynJacobs
8 months ago

  • Keywords commit added

LGTM!

#2 @desrosj
8 months ago

  • Owner set to desrosj
  • Status changed from new to assigned

#3 @desrosj
8 months ago

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

In 48964:

Site Health: Allow attachments to be added to recovery mode emails.

The wp_mail() function has the ability to add attachments to emails. There is currently no way to add attachments to the recovery mode email sent out to site admins when a PHP error is encountered on their site.

This change adds that ability through the use of the recovery_mode_email filter, allowing developers to use the full capabilities of wp_mail().

Props desrosj, timothyblynjacobs.
Fixes #51276.

#4 @SergeyBiryukov
8 months ago

In 48994:

Docs: Add a @since note for the recovery_mode_email filter about the $email argument now including the attachments key.

Follow-up to [48964].

See #51276.

#5 @desrosj
6 months ago

  • Keywords needs-dev-note added

Let's note this new filter in the miscellaneous dev note.

Version 0, edited 6 months ago by desrosj (next)
Note: See TracTickets for help on using tickets.