Changeset 2315
- Timestamp:
- 01/15/2010 04:31:18 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core.php
r2312 r2315 1492 1492 $site_path = '/'; 1493 1493 else { 1494 /* Unset the first three segments (http(s):// part) */1494 /* Unset the first three segments (http(s)://domain.com part) */ 1495 1495 unset( $site_path[0] ); 1496 1496 unset( $site_path[1] ); … … 1595 1595 */ 1596 1596 function 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]; 1599 1600 } 1600 1601 add_filter( 'wp_mail_from', 'bp_core_email_from_address_filter' ); 1601 1602 1602 1603 1603 /**
Note: See TracChangeset
for help on using the changeset viewer.