WordPress.org

Make WordPress Core

Opened 3 months ago

Closed 3 months ago

Last modified 2 weeks 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 needs-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 3 months ago.

Download all attachments as: .zip

Change History (6)

@desrosj
3 months ago

#1 @TimothyBlynJacobs
3 months ago

  • Keywords commit added

LGTM!

#2 @desrosj
3 months ago

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

#3 @desrosj
3 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
3 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
2 weeks ago

  • Keywords needs-dev-note added

Let's note this bug fix and the use case in the miscellaneous dev note.

Last edited 2 weeks ago by desrosj (previous) (diff)
Note: See TracTickets for help on using tickets.