Ticket #2618: 2618.2.diff
File 2618.2.diff, 2.0 KB (added by , 11 years ago) |
---|
-
src/includes/common/functions.php
1062 1062 $reply_content = strip_tags( bbp_get_reply_content( $reply_id ) ); 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@' . ltrim( get_home_url(), '^(http|https)://' ); 1066 1066 1067 // Custom do_not_reply 1068 $do_not_reply = apply_filters( 'bbp_subscription_do_not_reply', $do_not_reply ); 1069 1067 1070 // For plugins to filter messages per reply/topic/user 1068 1071 $message = sprintf( __( '%1$s wrote: 1069 1072 … … 1099 1102 $headers = array(); 1100 1103 1101 1104 // Setup the From header 1102 $headers[] = 'From: ' . get_bloginfo( 'name' ) . ' ' . $do_not_reply;1105 $headers[] = 'From: ' . get_bloginfo( 'name' ) . ' <' . $do_not_reply . '>'; 1103 1106 1104 1107 // Get topic subscribers and bail if empty 1105 1108 $user_ids = bbp_get_topic_subscribers( $topic_id, true ); … … 1202 1205 $topic_content = strip_tags( bbp_get_topic_content( $topic_id ) ); 1203 1206 $topic_url = get_permalink( $topic_id ); 1204 1207 $blog_name = wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ); 1205 $do_not_reply = ' <noreply@' . ltrim( get_home_url(), '^(http|https)://' ) . '>';1208 $do_not_reply = 'noreply@' . ltrim( get_home_url(), '^(http|https)://' ); 1206 1209 1210 // Custom do_not_reply 1211 $do_not_reply = apply_filters( 'bbp_subscription_do_not_reply', $do_not_reply ); 1212 1207 1213 // For plugins to filter messages per reply/topic/user 1208 1214 $message = sprintf( __( '%1$s wrote: 1209 1215 … … 1239 1245 $headers = array(); 1240 1246 1241 1247 // Setup the From header 1242 $headers[] = 'From: ' . get_bloginfo( 'name' ) . ' ' . $do_not_reply;1248 $headers[] = 'From: ' . get_bloginfo( 'name' ) . ' <' . $do_not_reply . '>'; 1243 1249 1244 1250 // Get topic subscribers and bail if empty 1245 1251 $user_ids = bbp_get_forum_subscribers( $forum_id, true );