Skip to:
Content

BuddyPress.org

Changeset 2796


Ignore:
Timestamp:
03/02/2010 12:16:29 PM (17 years ago)
Author:
apeatling
Message:

Added missing date_recorded param to fetch activity ID function.

Location:
branches/1.2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/1.2/bp-activity.php

    r2795 r2796  
    775775                'secondary_item_id' => false,
    776776                'action' => false,
    777                 'content' => false
     777                'content' => false,
     778                'date_recorded' => false,
    778779        );
    779780
     
    781782        extract( $r, EXTR_SKIP );
    782783
    783         return apply_filters( 'bp_activity_get_activity_id', BP_Activity_Activity::get_id( $user_id, $component, $type, $item_id, $secondary_item_id, $action, $content ) );
     784        return apply_filters( 'bp_activity_get_activity_id', BP_Activity_Activity::get_id( $user_id, $component, $type, $item_id, $secondary_item_id, $action, $content, $date_recorded ) );
    784785}
    785786
  • branches/1.2/bp-activity/bp-activity-classes.php

    r2692 r2796  
    199199        }
    200200
    201         function get_id( $user_id, $component, $type, $item_id, $secondary_item_id, $action, $content ) {
     201        function get_id( $user_id, $component, $type, $item_id, $secondary_item_id, $action, $content, $date_recorded ) {
    202202                global $bp, $wpdb;
    203203
     
    224224                if ( !empty( $content ) )
    225225                        $where_args[] = $wpdb->prepare( "content = %s", $content );
     226
     227                if ( !empty( $date_recorded ) )
     228                        $where_args[] = $wpdb->prepare( "date_recorded = %s", $date_recorded );
    226229
    227230                if ( !empty( $where_args ) )
Note: See TracChangeset for help on using the changeset viewer.