Changeset 12563
- Timestamp:
- 03/03/2020 08:54:03 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/classes/class-bp-activity-list-table.php
r12551 r12563 697 697 echo '</div>'; 698 698 699 $activity = new BP_Activity_Activity( $item['id'] ); 700 699 701 // Get activity content - if not set, use the action. 700 702 if ( ! empty( $item['content'] ) ) { 701 $activity = new BP_Activity_Activity( $item['id'] );702 703 703 /** This filter is documented in bp-activity/bp-activity-template.php */ 704 704 $content = apply_filters_ref_array( 'bp_get_activity_content_body', array( $item['content'], &$activity ) ); 705 705 } else { 706 /** 707 * Filters current activity item action. 708 * 709 * @since 1.2.0 710 * 711 * @var array $item Array index holding current activity item action. 712 */ 713 $content = apply_filters_ref_array( 'bp_get_activity_action', array( $item['action'] ) ); 706 // Emulate bp_get_activity_action(). 707 $r = array( 708 'no_timestamp' => false, 709 ); 710 711 /** This filter is documented in bp-activity/bp-activity-template.php */ 712 $content = apply_filters_ref_array( 'bp_get_activity_action', array( $item['action'], &$activity, $r ) ); 714 713 } 715 714
Note: See TracChangeset
for help on using the changeset viewer.