Changeset 4961 for trunk/bp-activity/bp-activity-filters.php
- Timestamp:
- 08/10/2011 06:32:02 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-filters.php
r4907 r4961 74 74 add_filter( 'bp_get_activity_feed_item_description', 'bp_activity_make_nofollow_filter' ); 75 75 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' ); 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' ); 79 79 80 80 add_filter( 'bp_get_activity_parent_content', 'bp_create_excerpt' ); … … 113 113 * 114 114 * @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, 116 116 * which will be added to the list of the user's unread mentions 117 117 */ … … 136 136 } 137 137 138 // Adjust the activity count for this item 138 // Adjust the activity count for this item 139 139 if ( $activity_id ) 140 140 bp_activity_adjust_mention_count( $activity_id, 'add' ); 141 141 142 142 return $content; 143 } 143 } 144 144 145 145 /** … … 154 154 // Only run this function once for a given activity item 155 155 remove_filter( 'bp_activity_after_save', 'bp_activity_at_name_filter_updates' ); 156 156 157 157 // Run the content through the linking filter, making sure to increment mention count 158 158 $activity->content = bp_activity_at_name_filter( $activity->content, $activity->id ); 159 159 160 160 // Resave the activity with the new content 161 161 $activity->save();
Note: See TracChangeset
for help on using the changeset viewer.