Skip to:
Content

bbPress.org

Changeset 6530


Ignore:
Timestamp:
06/12/2017 06:34:21 PM (8 years ago)
Author:
johnjamesjacoby
Message:

Engagements: Update topic engagements when they are manually inserted.

This brings the _insert_ functions up to date with the _new_ equivalents.

See: #3068. Props netweb & unit-tests for catching this.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/core/actions.php

    r6529 r6530  
    307307add_action( 'bbp_spam_reply',    'bbp_decrease_user_reply_count' );
    308308
     309// Insert topic/reply engagements.
     310add_action( 'bbp_insert_topic', 'bbp_update_topic_engagements' );
     311add_action( 'bbp_insert_reply', 'bbp_update_topic_engagements' );
     312
    309313// Insert topic/reply counts.
    310314add_action( 'bbp_insert_topic', 'bbp_insert_topic_update_counts', 10, 2 );
Note: See TracChangeset for help on using the changeset viewer.