WordPress.org

Make WordPress Core

Changeset 11489


Ignore:
Timestamp:
05/29/2009 08:00:06 PM (9 years ago)
Author:
ryan
Message:

Add comment_moderation_headers filter. Props mtdewvirus. fixes #9969

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/pluggable.php

    r11450 r11489  
    10791079    $subject = sprintf( __('[%1$s] Please moderate: "%2$s"'), get_option('blogname'), $post->post_title );
    10801080    $admin_email = get_option('admin_email');
     1081    $message_headers = '';
    10811082
    10821083    $notify_message = apply_filters('comment_moderation_text', $notify_message, $comment_id);
    10831084    $subject = apply_filters('comment_moderation_subject', $subject, $comment_id);
    1084 
    1085     @wp_mail($admin_email, $subject, $notify_message);
     1085    $message_headers = apply_filters('comment_moderation_headers', $message_headers);
     1086
     1087    @wp_mail($admin_email, $subject, $notify_message, $message_headers);
    10861088
    10871089    return true;
Note: See TracChangeset for help on using the changeset viewer.