Changeset 11351
- Timestamp:
- 12/29/2016 02:08:09 AM (8 years ago)
- Location:
- trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/bp-activity-functions.php
r11311 r11351 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_ref_array( 'bp_get_activity_content_body', array( $activity->content, &$activity ) ); 3445 3445 3446 3446 add_filter( 'bp_get_activity_content_body', 'convert_smilies' ); … … 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_ref_array( 'bp_get_activity_content_body', array( $params['content'], &$original_activity ) ); 3513 3513 3514 3514 add_filter( 'bp_get_activity_content_body', 'convert_smilies' ); -
trunk/src/bp-activity/bp-activity-template.php
r11280 r11351 1391 1391 * @since 1.2.0 1392 1392 * 1393 * @param array $value Array containing the current activity content body and the current activity. 1393 * @param string $content Content body. 1394 * @param object $activity Activity object. Passed by reference. 1394 1395 */ 1395 1396 return apply_filters_ref_array( 'bp_get_activity_content_body', array( $activities_template->activity->content, &$activities_template->activity ) ); -
trunk/src/bp-activity/classes/class-bp-activity-list-table.php
r10961 r11351 642 642 // Get activity content - if not set, use the action. 643 643 if ( ! empty( $item['content'] ) ) { 644 645 /** 646 * Filters current activity item content. 647 * 648 * @since 1.2.0 649 * 650 * @param array $item Array index holding current activity item content. 651 */ 652 $content = apply_filters_ref_array( 'bp_get_activity_content_body', array( $item['content'] ) ); 644 $activity = new BP_Activity_Activity( $item['id'] ); 645 646 /** This filter is documented in bp-activity/bp-activity-template.php */ 647 $content = apply_filters_ref_array( 'bp_get_activity_content_body', array( $item['content'], &$activity ) ); 653 648 } else { 654 649 /** -
trunk/src/bp-templates/bp-legacy/buddypress-functions.php
r11270 r11351 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_ref_array( 'bp_get_activity_content_body', array( $activity->content, &$activity ) ); 1254 1254 1255 1255 exit( $content );
Note: See TracChangeset
for help on using the changeset viewer.