Skip to:
Content

BuddyPress.org

Changeset 10428


Ignore:
Timestamp:
12/24/2015 01:14:59 PM (5 years ago)
Author:
boonebgorges
Message:

Pass function args to bp_activity_get_activity_id filter.

These arguments give better context for filter callbacks.

Props danbrellis.
Fixes #6794.

File:
1 edited

Legend:

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

    r10427 r10428  
    21952195     *
    21962196     * @since 1.2.0
     2197     * @since 2.5.0 Added the `$r` and `$args` parameters.
    21972198     *
    21982199     * @param BP_Activity_Activity $value ID returned by BP_Activity_Activity get_id() method with provided arguments.
     2200     * @param array                $r     Parsed function arguments.
     2201     * @param array                $args  Arguments passed to the function.
    21992202     */
    22002203    return apply_filters( 'bp_activity_get_activity_id', BP_Activity_Activity::get_id(
     
    22072210        $r['content'],
    22082211        $r['date_recorded']
    2209     ) );
     2212    ), $r, $args );
    22102213}
    22112214
Note: See TracChangeset for help on using the changeset viewer.