Skip to:
Content

BuddyPress.org

Changeset 7169


Ignore:
Timestamp:
06/06/2013 10:56:22 PM (13 years ago)
Author:
boonebgorges
Message:

When checking for previous new_blog_post entries to prevent bumping, skip the author ID check

The author ID check is superfluous - post_id and blog_id is sufficient to
identify a unique activity item corresponding to a specific post. Moreover, the
additional check breaks the intended functionality when the post is edited to
have a new author.

Fixes #4806

Props czarate

File:
1 edited

Legend:

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

    r6975 r7169  
    258258                $existing = bp_activity_get( array(
    259259                    'filter' => array(
    260                         'user_id'      => (int) $post->post_author,
    261260                        'action'       => 'new_blog_post',
    262261                        'primary_id'   => $blog_id,
Note: See TracChangeset for help on using the changeset viewer.