Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/28/2013 02:19:40 AM (12 years ago)
Author:
boonebgorges
Message:

Use filtered content when storing latest update in usermeta

Previously, the content was run through the
bp_activity_latest_update_content filter, but was then unused.

Fixes #4892

Props saurabhshukla

File:
1 edited

Legend:

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

    r6948 r7115  
    11071107    ) );
    11081108
    1109     $activity_content = apply_filters( 'bp_activity_latest_update_content', $content );
     1109    $activity_content = apply_filters( 'bp_activity_latest_update_content', $content, $activity_content );
    11101110
    11111111    // Add this update to the "latest update" usermeta so it can be fetched anywhere.
    1112     bp_update_user_meta( bp_loggedin_user_id(), 'bp_latest_update', array( 'id' => $activity_id, 'content' => $content ) );
     1112    bp_update_user_meta( bp_loggedin_user_id(), 'bp_latest_update', array( 'id' => $activity_id, 'content' => $activity_content ) );
    11131113
    11141114    do_action( 'bp_activity_posted_update', $content, $user_id, $activity_id );
Note: See TracChangeset for help on using the changeset viewer.