Skip to:
Content

bbPress.org

Ticket #2618: 2618.2.diff

File 2618.2.diff, 2.0 KB (added by netweb, 11 years ago)
  • src/includes/common/functions.php

     
    10621062        $reply_content = strip_tags( bbp_get_reply_content( $reply_id ) );
    10631063        $reply_url     = bbp_get_reply_url( $reply_id );
    10641064        $blog_name     = wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES );
    1065         $do_not_reply  = '<noreply@' . ltrim( get_home_url(), '^(http|https)://' ) . '>';
     1065        $do_not_reply  = 'noreply@' . ltrim( get_home_url(), '^(http|https)://' );
    10661066
     1067        // Custom do_not_reply
     1068        $do_not_reply = apply_filters( 'bbp_subscription_do_not_reply', $do_not_reply );
     1069
    10671070        // For plugins to filter messages per reply/topic/user
    10681071        $message = sprintf( __( '%1$s wrote:
    10691072
     
    10991102        $headers = array();
    11001103
    11011104        // Setup the From header
    1102         $headers[] = 'From: ' . get_bloginfo( 'name' ) . ' ' . $do_not_reply;
     1105        $headers[] = 'From: ' . get_bloginfo( 'name' ) . ' <' . $do_not_reply . '>';
    11031106
    11041107        // Get topic subscribers and bail if empty
    11051108        $user_ids = bbp_get_topic_subscribers( $topic_id, true );
     
    12021205        $topic_content = strip_tags( bbp_get_topic_content( $topic_id ) );
    12031206        $topic_url     = get_permalink( $topic_id );
    12041207        $blog_name     = wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES );
    1205         $do_not_reply  = '<noreply@' . ltrim( get_home_url(), '^(http|https)://' ) . '>';
     1208        $do_not_reply  = 'noreply@' . ltrim( get_home_url(), '^(http|https)://' );
    12061209
     1210        // Custom do_not_reply
     1211        $do_not_reply = apply_filters( 'bbp_subscription_do_not_reply', $do_not_reply );
     1212
    12071213        // For plugins to filter messages per reply/topic/user
    12081214        $message = sprintf( __( '%1$s wrote:
    12091215
     
    12391245        $headers = array();
    12401246
    12411247        // Setup the From header
    1242         $headers[] = 'From: ' . get_bloginfo( 'name' ) . ' ' . $do_not_reply;
     1248        $headers[] = 'From: ' . get_bloginfo( 'name' ) . ' <' . $do_not_reply . '>';
    12431249
    12441250        // Get topic subscribers and bail if empty
    12451251        $user_ids = bbp_get_forum_subscribers( $forum_id, true );