Skip to:
Content

BuddyPress.org

Changeset 5556


Ignore:
Timestamp:
12/14/2011 08:55:00 PM (13 years ago)
Author:
djpaul
Message:

Deprecate legacy "from address" email filter. Fixes #3270

Location:
trunk/bp-core
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-filters.php

    r5445 r5556  
    4141}
    4242add_filter( 'wp_mail_from_name', 'bp_core_email_from_name_filter' );
    43 
    44 /**
    45  * bp_core_email_from_name_filter()
    46  *
    47  * Sets the "From" address in emails sent
    48  *
    49  * @package BuddyPress Core
    50  * @return noreply@sitedomain email address
    51  */
    52 function bp_core_email_from_address_filter() {
    53     $domain = (array) explode( '/', site_url() );
    54 
    55     return apply_filters( 'bp_core_email_from_address_filter', 'noreply@' . $domain[2] );
    56 }
    57 add_filter( 'wp_mail_from', 'bp_core_email_from_address_filter' );
    5843
    5944/**
  • trunk/bp-core/deprecated/1.6.php

    r5437 r5556  
    8585    _deprecated_function( __FUNCTION__, '1.6' );
    8686}
     87
     88/**
     89 * Sets the "From" address in emails sent
     90 *
     91 * @deprecated 1.6
     92 * @deprecated No longer used.
     93 * @return noreply@sitedomain email address
     94 */
     95function bp_core_email_from_address_filter() {
     96    _deprecated_function( __FUNCTION__, '1.6' );
     97
     98    $domain = (array) explode( '/', site_url() );
     99    return apply_filters( 'bp_core_email_from_address_filter', 'noreply@' . $domain[2] );
     100}
    87101?>
Note: See TracChangeset for help on using the changeset viewer.