Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/29/2016 02:08:09 AM (8 years ago)
Author:
boonebgorges
Message:

bp_get_activity_content_body filter should receive same params in all contexts.

This changeset makes all instances of bp_get_activity_content_body
consistent by ensuring that they all receive the activity object
as a second parameter. This requires switching to apply_filters_ref_array(),
so that the second param can always be passed by reference.

Props sanket.parmar.
Fixes #6971.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-activity/bp-activity-template.php

    r11280 r11351  
    13911391         * @since 1.2.0
    13921392         *
    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.
    13941395         */
    13951396        return apply_filters_ref_array( 'bp_get_activity_content_body', array( $activities_template->activity->content, &$activities_template->activity ) );
Note: See TracChangeset for help on using the changeset viewer.