Changeset 6613
- Timestamp:
- 07/04/2017 04:03:18 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/common/functions.php
r6607 r6613 1083 1083 remove_all_filters( 'bbp_get_reply_content' ); 1084 1084 remove_all_filters( 'bbp_get_topic_title' ); 1085 remove_all_filters( 'the_title' ); 1085 1086 1086 1087 // Strip tags from text and setup mail data 1087 $topic_title = strip_tags( bbp_get_topic_title( $topic_id ) ); 1088 $reply_content = strip_tags( bbp_get_reply_content( $reply_id ) ); 1088 $blog_name = wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ); 1089 $topic_title = wp_specialchars_decode( strip_tags( bbp_get_topic_title( $topic_id ) ), ENT_QUOTES ); 1090 $reply_content = wp_specialchars_decode( strip_tags( bbp_get_reply_content( $reply_id ) ), ENT_QUOTES ); 1089 1091 $reply_url = bbp_get_reply_url( $reply_id ); 1090 $blog_name = wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES );1091 1092 1092 1093 // For plugins to filter messages per reply/topic/user … … 1230 1231 remove_all_filters( 'bbp_get_topic_content' ); 1231 1232 remove_all_filters( 'bbp_get_topic_title' ); 1233 remove_all_filters( 'the_title' ); 1232 1234 1233 1235 // Strip tags from text and setup mail data 1234 $topic_title = strip_tags( bbp_get_topic_title( $topic_id ) ); 1235 $topic_content = strip_tags( bbp_get_topic_content( $topic_id ) ); 1236 $blog_name = wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ); 1237 $topic_title = wp_specialchars_decode( strip_tags( bbp_get_topic_title( $topic_id ) ), ENT_QUOTES ); 1238 $topic_content = wp_specialchars_decode( strip_tags( bbp_get_topic_content( $topic_id ) ), ENT_QUOTES ); 1236 1239 $topic_url = get_permalink( $topic_id ); 1237 $blog_name = wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES );1238 1240 1239 1241 // For plugins to filter messages per reply/topic/user
Note: See TracChangeset
for help on using the changeset viewer.