Changeset 6614 for trunk/src/includes/common/functions.php
- Timestamp:
- 07/04/2017 04:09:35 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/common/functions.php
r6613 r6614 1081 1081 // Remove filters from reply content and topic title to prevent content 1082 1082 // from being encoded with HTML entities, wrapped in paragraph tags, etc... 1083 remove_all_filters( 'bbp_get_reply_content' );1084 remove_all_filters( 'bbp_get_topic_title' );1085 remove_all_filters( 'the_title' );1083 bbp_remove_all_filters( 'bbp_get_reply_content' ); 1084 bbp_remove_all_filters( 'bbp_get_topic_title' ); 1085 bbp_remove_all_filters( 'the_title' ); 1086 1086 1087 1087 // Strip tags from text and setup mail data … … 1148 1148 1149 1149 do_action( 'bbp_post_notify_subscribers', $reply_id, $topic_id, $user_ids ); 1150 1151 // Restore previously removed filters 1152 bbp_restore_all_filters( 'bbp_get_topic_content' ); 1153 bbp_restore_all_filters( 'bbp_get_topic_title' ); 1154 bbp_restore_all_filters( 'the_title' ); 1150 1155 1151 1156 return true; … … 1229 1234 // Remove filters from reply content and topic title to prevent content 1230 1235 // from being encoded with HTML entities, wrapped in paragraph tags, etc... 1231 remove_all_filters( 'bbp_get_topic_content' );1232 remove_all_filters( 'bbp_get_topic_title' );1233 remove_all_filters( 'the_title' );1236 bbp_remove_all_filters( 'bbp_get_topic_content' ); 1237 bbp_remove_all_filters( 'bbp_get_topic_title' ); 1238 bbp_remove_all_filters( 'the_title' ); 1234 1239 1235 1240 // Strip tags from text and setup mail data … … 1296 1301 1297 1302 do_action( 'bbp_post_notify_forum_subscribers', $topic_id, $forum_id, $user_ids ); 1303 1304 // Restore previously removed filters 1305 bbp_restore_all_filters( 'bbp_get_topic_content' ); 1306 bbp_restore_all_filters( 'bbp_get_topic_title' ); 1307 bbp_restore_all_filters( 'the_title' ); 1298 1308 1299 1309 return true;
Note: See TracChangeset
for help on using the changeset viewer.