WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#8277 closed enhancement (duplicate)

Add filter 'comment_moderation_headers' in 'wp_notify_moderator' (pluggable.php)

Reported by: hetjens Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Comments Keywords: needs-patch
Focuses: Cc:

Description

I want to modifiy email headers of the new comment notification emails. The function to send a email to the post author (wp_notify_postauthor) offers a filter ('comment_notification_headers') to do this, but the function 'wp_notify_moderator' doesn't.

I created a patch, that adds and modifies 4 lines in this function. It adds the filter (comment_moderation_headers) and sets also, like in the other function, the charset for the email.

Attachments (1)

pluggable.diff (872 bytes) - added by hetjens 5 years ago.
Patch for the current trunk version

Download all attachments as: .zip

Change History (8)

hetjens5 years ago

Patch for the current trunk version

comment:1 ryan5 years ago

  • Milestone changed from 2.7 to 2.8

Postponing enhancements to 2.8.

comment:2 hetjens5 years ago

  • Milestone changed from 2.8 to 2.7.2

Please have a look!

comment:3 FFEMTcJ5 years ago

  • Milestone changed from 2.7.2 to 2.8

Postponing enhancements to 2.8

comment:4 janeforshort5 years ago

  • Keywords has-patch needs-testing added

comment:5 Denis-de-Bernardy5 years ago

  • Keywords needs-patch added; has-patch needs-testing removed
  • Milestone changed from 2.8 to Future Release

$from is set nowhere.

comment:6 Denis-de-Bernardy5 years ago

see also #9969 (dup)

comment:7 Denis-de-Bernardy5 years ago

  • Milestone Future Release deleted
  • Resolution set to duplicate
  • Status changed from new to closed

#9969 has a better patch

Note: See TracTickets for help on using tickets.