Ticket #6971: 6971.diff
File 6971.diff, 3.3 KB (added by , 7 years ago) |
---|
-
bp-activity/bp-activity-functions.php
3441 3441 remove_filter( 'bp_get_activity_content_body', 'bp_activity_truncate_entry', 5 ); 3442 3442 3443 3443 /** This filter is documented in bp-activity/bp-activity-template.php */ 3444 $content = apply_filters( 'bp_get_activity_content_body', $activity->content );3444 $content = apply_filters( 'bp_get_activity_content_body', $activity->content, $activity ); 3445 3445 3446 3446 add_filter( 'bp_get_activity_content_body', 'convert_smilies' ); 3447 3447 add_filter( 'bp_get_activity_content_body', 'wpautop' ); … … 3509 3509 remove_filter( 'bp_get_activity_content_body', 'bp_activity_truncate_entry', 5 ); 3510 3510 3511 3511 /** This filter is documented in bp-activity/bp-activity-template.php */ 3512 $content = apply_filters( 'bp_get_activity_content_body', $params['content'] );3512 $content = apply_filters( 'bp_get_activity_content_body', $params['content'], $original_activity ); 3513 3513 3514 3514 add_filter( 'bp_get_activity_content_body', 'convert_smilies' ); 3515 3515 add_filter( 'bp_get_activity_content_body', 'wpautop' ); -
bp-activity/classes/class-bp-activity-list-table.php
641 641 642 642 // Get activity content - if not set, use the action. 643 643 if ( ! empty( $item['content'] ) ) { 644 $activity = new BP_Activity_Activity( $item['id'] ); 644 645 645 646 /** 646 647 * Filters current activity item content. … … 649 650 * 650 651 * @param array $item Array index holding current activity item content. 651 652 */ 652 $content = apply_filters_ref_array( 'bp_get_activity_content_body', array( $item['content'] ) );653 $content = apply_filters_ref_array( 'bp_get_activity_content_body', array( $item['content'], $activity ) ); 653 654 } else { 654 655 /** 655 656 * Filters current activity item action. -
bp-templates/bp-legacy/buddypress-functions.php
1250 1250 remove_filter( 'bp_get_activity_content_body', 'bp_activity_truncate_entry', 5 ); 1251 1251 1252 1252 /** This filter is documented in bp-activity/bp-activity-template.php */ 1253 $content = apply_filters( 'bp_get_activity_content_body', $activity->content );1253 $content = apply_filters( 'bp_get_activity_content_body', $activity->content, $activity ); 1254 1254 1255 1255 exit( $content ); 1256 1256 } -
bp-themes/bp-default/_inc/ajax.php
548 548 549 549 // Activity content retrieved through AJAX should run through normal filters, but not be truncated 550 550 remove_filter( 'bp_get_activity_content_body', 'bp_activity_truncate_entry', 5 ); 551 $content = apply_filters( 'bp_get_activity_content_body', $activity->content );551 $content = apply_filters( 'bp_get_activity_content_body', $activity->content, $activity ); 552 552 553 553 exit( $content ); 554 554 }