Changeset 7250
- Timestamp:
- 03/08/2022 08:44:02 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.6/src/includes/common/functions.php
r7237 r7250 1140 1140 1141 1141 // Strip tags from text and setup mail data 1142 $ blog_name = wp_specialchars_decode( get_option( 'blogname'), ENT_QUOTES );1142 $forum_title = wp_specialchars_decode( strip_tags( bbp_get_forum_title( $forum_id ) ), ENT_QUOTES ); 1143 1143 $topic_title = wp_specialchars_decode( strip_tags( bbp_get_topic_title( $topic_id ) ), ENT_QUOTES ); 1144 1144 $reply_author_name = wp_specialchars_decode( strip_tags( $reply_author_name ), ENT_QUOTES ); … … 1170 1170 1171 1171 // For plugins to filter titles per reply/topic/user 1172 $subject = apply_filters( 'bbp_subscription_mail_title', '[' . $ blog_name . '] ' . $topic_title, $reply_id, $topic_id );1172 $subject = apply_filters( 'bbp_subscription_mail_title', '[' . $forum_title . '] ' . $topic_title, $reply_id, $topic_id ); 1173 1173 if ( empty( $subject ) ) { 1174 1174 return; … … 1307 1307 1308 1308 // Strip tags from text and setup mail data 1309 $ blog_name = wp_specialchars_decode( get_option( 'blogname'), ENT_QUOTES );1309 $forum_title = wp_specialchars_decode( strip_tags( bbp_get_forum_title( $forum_id ) ), ENT_QUOTES ); 1310 1310 $topic_title = wp_specialchars_decode( strip_tags( bbp_get_topic_title( $topic_id ) ), ENT_QUOTES ); 1311 1311 $topic_author_name = wp_specialchars_decode( strip_tags( $topic_author_name ), ENT_QUOTES ); … … 1337 1337 1338 1338 // For plugins to filter titles per reply/topic/user 1339 $subject = apply_filters( 'bbp_forum_subscription_mail_title', '[' . $ blog_name . '] ' . $topic_title, $topic_id, $forum_id, $user_id );1339 $subject = apply_filters( 'bbp_forum_subscription_mail_title', '[' . $forum_title . '] ' . $topic_title, $topic_id, $forum_id, $user_id ); 1340 1340 if ( empty( $subject ) ) { 1341 1341 return;
Note: See TracChangeset
for help on using the changeset viewer.