diff --git src/includes/common/functions.php src/includes/common/functions.php
index 67af13c..dc15249 100644
|
|
function bbp_notify_topic_subscribers( $reply_id = 0, $topic_id = 0, $forum_id = |
1106 | 1106 | // Remove filters from reply content and topic title to prevent content |
1107 | 1107 | // from being encoded with HTML entities, wrapped in paragraph tags, etc... |
1108 | 1108 | remove_all_filters( 'bbp_get_reply_content' ); |
1109 | | remove_all_filters( 'bbp_get_topic_title' ); |
| 1109 | remove_all_filters( 'the_title' ); |
1110 | 1110 | |
1111 | 1111 | // Strip tags from text and setup mail data |
1112 | | $topic_title = strip_tags( bbp_get_topic_title( $topic_id ) ); |
1113 | | $reply_content = strip_tags( bbp_get_reply_content( $reply_id ) ); |
| 1112 | $topic_title = wp_specialchars_decode( strip_tags( bbp_get_topic_title( $topic_id ) ), ENT_QUOTES ); |
| 1113 | $reply_content = wp_specialchars_decode( strip_tags( bbp_get_reply_content( $reply_id ) ), ENT_QUOTES ); |
1114 | 1114 | $reply_url = bbp_get_reply_url( $reply_id ); |
1115 | 1115 | $blog_name = wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ); |
1116 | 1116 | |
… |
… |
function bbp_notify_forum_subscribers( $topic_id = 0, $forum_id = 0, $anonymous_ |
1263 | 1263 | // Remove filters from reply content and topic title to prevent content |
1264 | 1264 | // from being encoded with HTML entities, wrapped in paragraph tags, etc... |
1265 | 1265 | remove_all_filters( 'bbp_get_topic_content' ); |
1266 | | remove_all_filters( 'bbp_get_topic_title' ); |
| 1266 | remove_all_filters( 'the_title' ); |
1267 | 1267 | |
1268 | 1268 | // Strip tags from text and setup mail data |
1269 | | $topic_title = strip_tags( bbp_get_topic_title( $topic_id ) ); |
1270 | | $topic_content = strip_tags( bbp_get_topic_content( $topic_id ) ); |
| 1269 | $topic_title = wp_specialchars_decode( strip_tags( bbp_get_topic_title( $topic_id ) ), ENT_QUOTES ); |
| 1270 | $topic_content = wp_specialchars_decode( strip_tags( bbp_get_topic_content( $topic_id ) ), ENT_QUOTES ); |
1271 | 1271 | $topic_url = get_permalink( $topic_id ); |
1272 | 1272 | $blog_name = wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ); |
1273 | 1273 | |