Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/04/2018 03:39:36 PM (3 years ago)
Author:
boonebgorges
Message:

Blogs: Ensure activity data integrity when updating post title.

Previously, a missing primary_id could cause the post_title activity meta
value to be updated for activity items unrelated to the one linked to the
updated blog post.

Props r-a-y.
Fixes #8007.

File:
1 edited

Legend:

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

    r12303 r12311  
    663663                    'object'       => $activity_post_object->comments_tracking->component_id,
    664664                    'action'       => $activity_post_object->comments_tracking->action_id,
     665                    'primary_id'   => get_current_blog_id(),
    665666                    'secondary_id' => implode( ',', $comment_ids ),
    666667                );
Note: See TracChangeset for help on using the changeset viewer.