Ticket #2162: 2162-2.5-branch.diff
File 2162-2.5-branch.diff, 1.8 KB (added by , 11 years ago) |
---|
-
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( null, '', 'relative' ), '/' );1065 $do_not_reply = '<noreply@' . ltrim( get_home_url(), '^(http|https)://' ) . '>'; 1066 1066 1067 1067 // For plugins to filter messages per reply/topic/user 1068 1068 $message = sprintf( __( '%1$s wrote: … … 1099 1099 $headers = array(); 1100 1100 1101 1101 // Setup the From header 1102 $headers[] = 'From: .' . get_bloginfo( 'name' ) . ' ' . $do_not_reply;1103 1102 $headers[] = 'From: ' . get_bloginfo( 'name' ) . ' ' . $do_not_reply; 1103 1104 1104 // Get topic subscribers and bail if empty 1105 1105 $user_ids = bbp_get_topic_subscribers( $topic_id, true ); 1106 1106 if ( empty( $user_ids ) ) { … … 1202 1202 $topic_content = strip_tags( bbp_get_topic_content( $topic_id ) ); 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( null, '', 'relative' ), '/' );1205 $do_not_reply = '<noreply@' . ltrim( get_home_url(), '^(http|https)://' ) . '>'; 1206 1206 1207 1207 // For plugins to filter messages per reply/topic/user 1208 1208 $message = sprintf( __( '%1$s wrote: … … 1239 1239 $headers = array(); 1240 1240 1241 1241 // Setup the From header 1242 $headers[] = 'From: .' . get_bloginfo( 'name' ) . ' ' . $do_not_reply;1243 1242 $headers[] = 'From: ' . get_bloginfo( 'name' ) . ' ' . $do_not_reply; 1243 1244 1244 // Get topic subscribers and bail if empty 1245 1245 $user_ids = bbp_get_forum_subscribers( $forum_id, true ); 1246 1246 if ( empty( $user_ids ) ) {