Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/10/2011 06:32:02 AM (14 years ago)
Author:
djpaul
Message:

Tidy up whitespace. Fixes #3466, props cnorris23

File:
1 edited

Legend:

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

    r4907 r4961  
    7474add_filter( 'bp_get_activity_feed_item_description', 'bp_activity_make_nofollow_filter' );
    7575
    76 add_filter( 'pre_comment_content',                   'bp_activity_at_name_filter' ); 
    77 add_filter( 'group_forum_topic_text_before_save',    'bp_activity_at_name_filter' ); 
    78 add_filter( 'group_forum_post_text_before_save',     'bp_activity_at_name_filter' ); 
     76add_filter( 'pre_comment_content',                   'bp_activity_at_name_filter' );
     77add_filter( 'group_forum_topic_text_before_save',    'bp_activity_at_name_filter' );
     78add_filter( 'group_forum_post_text_before_save',     'bp_activity_at_name_filter' );
    7979
    8080add_filter( 'bp_get_activity_parent_content',        'bp_create_excerpt' );
     
    113113 *
    114114 * @param string $content The activity content
    115  * @param int $activity_id When $adjust_mention_count is true, you must provide an $activity_id, 
     115 * @param int $activity_id When $adjust_mention_count is true, you must provide an $activity_id,
    116116 *   which will be added to the list of the user's unread mentions
    117117 */
     
    136136    }
    137137
    138     // Adjust the activity count for this item 
     138    // Adjust the activity count for this item
    139139    if ( $activity_id )
    140140        bp_activity_adjust_mention_count( $activity_id, 'add' );
    141141
    142142    return $content;
    143 } 
     143}
    144144
    145145/**
     
    154154    // Only run this function once for a given activity item
    155155    remove_filter( 'bp_activity_after_save', 'bp_activity_at_name_filter_updates' );
    156    
     156
    157157    // Run the content through the linking filter, making sure to increment mention count
    158158    $activity->content = bp_activity_at_name_filter( $activity->content, $activity->id );
    159    
     159
    160160    // Resave the activity with the new content
    161161    $activity->save();
Note: See TracChangeset for help on using the changeset viewer.