Changeset 5639
- Timestamp:
- 03/17/2015 12:26:37 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.5/includes/common/functions.php
r5259 r5639 993 993 * those cases, we recommend unhooking this function and creating your own 994 994 * custom emailer script. 995 * 995 * 996 996 * @since bbPress (r2668) 997 997 * … … 1063 1063 $reply_url = bbp_get_reply_url( $reply_id ); 1064 1064 $blog_name = wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ); 1065 $do_not_reply = '<noreply@' . ltrim( get_home_url(), '^(http|https)://') . '>';1065 $do_not_reply = '<noreply@' . preg_replace( '@^https?://(www\.)?@i', '', get_home_url() ) . '>'; 1066 1066 1067 1067 // For plugins to filter messages per reply/topic/user … … 1101 1101 // Setup the From header 1102 1102 $headers[] = 'From: ' . get_bloginfo( 'name' ) . ' ' . $do_not_reply; 1103 1103 1104 1104 // Get topic subscribers and bail if empty 1105 1105 $user_ids = bbp_get_topic_subscribers( $topic_id, true ); … … 1146 1146 * those cases, we recommend unhooking this function and creating your own 1147 1147 * custom emailer script. 1148 * 1148 * 1149 1149 * @since bbPress (r5156) 1150 1150 * … … 1203 1203 $topic_url = get_permalink( $topic_id ); 1204 1204 $blog_name = wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ); 1205 $do_not_reply = '<noreply@' . ltrim( get_home_url(), '^(http|https)://') . '>';1205 $do_not_reply = '<noreply@' . preg_replace( '@^https?://(www\.)?@i', '', get_home_url() ) . '>'; 1206 1206 1207 1207 // For plugins to filter messages per reply/topic/user … … 1241 1241 // Setup the From header 1242 1242 $headers[] = 'From: ' . get_bloginfo( 'name' ) . ' ' . $do_not_reply; 1243 1243 1244 1244 // Get topic subscribers and bail if empty 1245 1245 $user_ids = bbp_get_forum_subscribers( $forum_id, true );
Note: See TracChangeset
for help on using the changeset viewer.