Skip to:
Content

BuddyPress.org

Changeset 2315


Ignore:
Timestamp:
01/15/2010 04:31:18 PM (15 years ago)
Author:
apeatling
Message:

Fixes #1545 - incorrect email domain on notification emails.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core.php

    r2312 r2315  
    14921492            $site_path = '/';
    14931493        else {
    1494             /* Unset the first three segments (http(s):// part) */
     1494            /* Unset the first three segments (http(s)://domain.com part) */
    14951495            unset( $site_path[0] );
    14961496            unset( $site_path[1] );
     
    15951595 */
    15961596function bp_core_email_from_address_filter() {
    1597     global $current_site;
    1598     return 'noreply@' . $current_site->domain;
     1597    $domain = (array) explode( '/', site_url() );
     1598
     1599    return __( 'noreply', 'buddypress' ) . '@' . $domain[2];
    15991600}
    16001601add_filter( 'wp_mail_from', 'bp_core_email_from_address_filter' );
    1601 
    16021602
    16031603/**
Note: See TracChangeset for help on using the changeset viewer.