Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/14/2021 03:51:15 PM (3 years ago)
Author:
imath
Message:

Group the BP_Activity_Activity::get_id() method params into an array

Deprecate old arguments and add backward compatibility for users still using these.

Props oztaser

Fixes #8596

File:
1 edited

Legend:

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

    r13149 r13150  
    28692869     * @param array                $args  Arguments passed to the function.
    28702870     */
    2871     return apply_filters( 'bp_activity_get_activity_id', BP_Activity_Activity::get_id(
    2872         $r['user_id'],
    2873         $r['component'],
    2874         $r['type'],
    2875         $r['item_id'],
    2876         $r['secondary_item_id'],
    2877         $r['action'],
    2878         $r['content'],
    2879         $r['date_recorded']
    2880     ), $r, $args );
     2871    return apply_filters( 'bp_activity_get_activity_id', BP_Activity_Activity::get_id( $r ), $r, $args );
    28812872}
    28822873
Note: See TracChangeset for help on using the changeset viewer.