Ticket #2618: 2618.5-25branch.diff
File 2618.5-25branch.diff, 1.2 KB (added by , 10 years ago) |
---|
-
branches/2.5/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@' . preg_replace( '@^https?://(www\.)?@i', '', get_home_url() ) . '>'; 1066 1066 1067 1067 // For plugins to filter messages per reply/topic/user 1068 1068 $message = sprintf( __( '%1$s wrote: … … 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(), '^(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 1208 1208 $message = sprintf( __( '%1$s wrote: