Skip to:
Content

BuddyPress.org

Changeset 7484


Ignore:
Timestamp:
10/31/2013 04:51:37 PM (8 years ago)
Author:
boonebgorges
Message:

Reinstates $admin_mail variable when compiling registration emails

The admin_email value was originally used to create a custom email header,
which is no longer used. (See [7463] #5186.) However, the $admin_email variable
is still passed to the apply_filters() calls at the end of each filter
function, so the variable must be defined.

File:
1 edited

Legend:

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

    r7463 r7484  
    280280    wp_mail( $to, $subject, $message );
    281281
     282    // Set up the $admin_email to pass to the filter
     283    $admin_email = bp_get_option( 'admin_email' );
     284
    282285    do_action( 'bp_core_sent_blog_signup_email', $admin_email, $subject, $message, $domain, $path, $title, $user, $user_email, $key, $meta );
    283286
     
    315318    // Send the email
    316319    wp_mail( $to, $subject, $message );
     320
     321    // Set up the $admin_email to pass to the filter
     322    $admin_email = bp_get_option( 'admin_email' );
    317323
    318324    do_action( 'bp_core_sent_user_signup_email', $admin_email, $subject, $message, $user, $user_email, $key, $meta );
Note: See TracChangeset for help on using the changeset viewer.