Changeset 3592 for trunk/bp-forums/bp-forums-filters.php
- Timestamp:
- 12/27/2010 10:57:31 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-forums/bp-forums-filters.php
r3542 r3592 9 9 add_filter( 'bp_get_the_topic_post_content', 'bp_forums_filter_kses', 1 ); 10 10 11 add_filter( 'bp_get_the_topic_title', 'force_balance_tags' ); 11 add_filter( 'bp_get_the_topic_title', 'force_balance_tags' ); 12 12 add_filter( 'bp_get_the_topic_latest_post_excerpt', 'force_balance_tags' ); 13 13 add_filter( 'bp_get_the_topic_post_content', 'force_balance_tags' ); … … 121 121 function bp_forums_strip_mentions_on_post_edit( $content ) { 122 122 global $bp; 123 123 124 124 $content = htmlspecialchars_decode( $content ); 125 125 126 126 $pattern = "|<a href='" . $bp->root_domain . "/" . $bp->members->slug . "/[A-Za-z0-9-_\.]+/' rel='nofollow'>(@[A-Za-z0-9-_\.]+)</a>|"; 127 127 128 128 $content = preg_replace( $pattern, "$1", $content ); 129 129 130 130 return $content; 131 131 }
Note: See TracChangeset
for help on using the changeset viewer.