Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/19/2019 03:31:05 PM (10 months 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.

Merges [12311] to the 4.0.x branch.

Props r-a-y.
Fixes #8007.

Location:
branches/4.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.0

  • branches/4.0/src/bp-blogs/bp-blogs-functions.php

    r12304 r12333  
    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.