Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/27/2010 10:57:31 PM (14 years ago)
Author:
djpaul
Message:

Removes trailing whitespace. Fixes #2965, props cnorris23

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-forums/bp-forums-filters.php

    r3542 r3592  
    99add_filter( 'bp_get_the_topic_post_content', 'bp_forums_filter_kses', 1 );
    1010
    11 add_filter( 'bp_get_the_topic_title', 'force_balance_tags' ); 
     11add_filter( 'bp_get_the_topic_title', 'force_balance_tags' );
    1212add_filter( 'bp_get_the_topic_latest_post_excerpt', 'force_balance_tags' );
    1313add_filter( 'bp_get_the_topic_post_content', 'force_balance_tags' );
     
    121121function bp_forums_strip_mentions_on_post_edit( $content ) {
    122122    global $bp;
    123    
     123
    124124    $content = htmlspecialchars_decode( $content );
    125    
     125
    126126    $pattern = "|<a href=&#039;" . $bp->root_domain . "/" . $bp->members->slug . "/[A-Za-z0-9-_\.]+/&#039; rel=&#039;nofollow&#039;>(@[A-Za-z0-9-_\.]+)</a>|";
    127    
     127
    128128    $content = preg_replace( $pattern, "$1", $content );
    129    
     129
    130130    return $content;
    131131}
Note: See TracChangeset for help on using the changeset viewer.