Skip to:
Content

bbPress.org


Ignore:
Timestamp:
03/07/2017 07:13:52 PM (8 years ago)
Author:
johnjamesjacoby
Message:

Engagements: Move engagement count updates to action hooks.

Props thebrandonallen. Fixes #3068.

File:
1 edited

Legend:

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

    r6302 r6369  
    310310add_action( 'bbp_insert_reply', 'bbp_insert_reply_update_counts', 10, 3 );
    311311
     312// Update topic voice counts.
     313add_action( 'bbp_new_reply',        'bbp_update_topic_voice_count' );
     314add_action( 'bbp_trashed_reply',    'bbp_update_topic_voice_count' );
     315add_action( 'bbp_untrashed_reply',  'bbp_update_topic_voice_count' );
     316add_action( 'bbp_spammed_reply',    'bbp_update_topic_voice_count' );
     317add_action( 'bbp_unspammed_reply',  'bbp_update_topic_voice_count' );
     318add_action( 'bbp_approved_reply',   'bbp_update_topic_voice_count' );
     319add_action( 'bbp_unapproved_reply', 'bbp_update_topic_voice_count' );
     320
     321// Insert reply voice counts.
     322add_action( 'bbp_insert_reply', 'bbp_update_topic_voice_count' );
     323
    312324// Topic status transition helpers for replies
    313325add_action( 'bbp_trash_topic',   'bbp_trash_topic_replies'   );
Note: See TracChangeset for help on using the changeset viewer.