Skip to:
Content

BuddyPress.org

Ticket #8234: 8234.01.patch

File 8234.01.patch, 1.3 KB (added by r-a-y, 5 years ago)
  • src/bp-activity/classes/class-bp-activity-list-table.php

     
    645645                // End timestamp.
    646646                echo '</div>';
    647647
     648                $activity = new BP_Activity_Activity( $item['id'] );
     649
    648650                // Get activity content - if not set, use the action.
    649651                if ( ! empty( $item['content'] ) ) {
    650                         $activity = new BP_Activity_Activity( $item['id'] );
    651 
    652652                        /** This filter is documented in bp-activity/bp-activity-template.php */
    653653                        $content = apply_filters_ref_array( 'bp_get_activity_content_body', array( $item['content'], &$activity ) );
    654654                } else {
    655                         /**
    656                          * Filters current activity item action.
    657                          *
    658                          * @since 1.2.0
    659                          *
    660                          * @var array $item Array index holding current activity item action.
    661                          */
    662                         $content = apply_filters_ref_array( 'bp_get_activity_action', array( $item['action'] ) );
     655                        // Emulate bp_get_activity_action().
     656                        $r = array(
     657                                'no_timestamp' => false,
     658                        );
     659
     660                        /** This filter is documented in bp-activity/bp-activity-template.php */
     661                        $content = apply_filters_ref_array( 'bp_get_activity_action', array( $item['action'], &$activity, $r ) );
    663662                }
    664663
    665664                /**