Skip to:
Content

bbPress.org

Changeset 5259


Ignore:
Timestamp:
01/16/2014 08:36:14 PM (11 years ago)
Author:
johnjamesjacoby
Message:

Subscriptions clean-up, from r5258. Props netweb. See #2162. (2.5 branch)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.5/includes/common/functions.php

    r5258 r5259  
    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( null, '', 'relative' ), '/' );
     1065    $do_not_reply  = '<noreply@' . ltrim( get_home_url(), '^(http|https)://' ) . '>';
    10661066
    10671067    // For plugins to filter messages per reply/topic/user
     
    11001100
    11011101    // Setup the From header
    1102     $headers[] = 'From: . ' . get_bloginfo( 'name' ) . ' ' . $do_not_reply;
     1102    $headers[] = 'From: ' . get_bloginfo( 'name' ) . ' ' . $do_not_reply;
    11031103   
    11041104    // Get topic subscribers and bail if empty
     
    12031203    $topic_url     = get_permalink( $topic_id );
    12041204    $blog_name     = wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES );
    1205     $do_not_reply  = 'noreply@' . ltrim( get_home_url( null, '', 'relative' ), '/' );
     1205    $do_not_reply  = '<noreply@' . ltrim( get_home_url(), '^(http|https)://' ) . '>';
    12061206
    12071207    // For plugins to filter messages per reply/topic/user
     
    12401240
    12411241    // Setup the From header
    1242     $headers[] = 'From: . ' . get_bloginfo( 'name' ) . ' ' . $do_not_reply;
     1242    $headers[] = 'From: ' . get_bloginfo( 'name' ) . ' ' . $do_not_reply;
    12431243   
    12441244    // Get topic subscribers and bail if empty
Note: See TracChangeset for help on using the changeset viewer.