[buddypress-trac] [BuddyPress Trac] #5680: Pass parameters to bp_blogs_record_activity_content

buddypress-trac noreply at wordpress.org
Wed Jun 4 13:58:52 UTC 2014

#5680: Pass parameters to bp_blogs_record_activity_content
 Reporter:  rogercoathup  |      Owner:
     Type:  enhancement   |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Core          |    Version:
 Severity:  normal        |   Keywords:
 At present, the 'bp_blogs_record_activity_content' filter is very limited
 in the options it allows for content filtering -- it's passed the content
 string, but none of the useful parameters like primary_link.  This makes
 it impossible to do anything but the most basic filtering of the content.

 For example, we'd find it highly desirable to change the unlinked [...]
 (at the end of the post excerpt in the activity stream) to a linked [read
 more].  However, this is not possible because the primary_link and other
 fields are not passed to the filter.

 This should be simple to amend / enhance, by adding an additional
 parameter to pass the parameters array to filters hooked onto

 i.e. change line 294 of bp-blogs-activity.php from:

                 $content = apply_filters(
 'bp_blogs_record_activity_content', bp_create_excerpt( $content ),
 $content );


                 $content = apply_filters(
 'bp_blogs_record_activity_content', bp_create_excerpt( $content ),
 $content, $r );

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5680>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac

More information about the buddypress-trac mailing list