Skip to:
Content

bbPress.org


Ignore:
Timestamp:
02/15/2011 12:43:50 PM (13 years ago)
Author:
johnjamesjacoby
Message:

Abstract forum updating code out of bbp_update_topic_walker and into bbp_update_forum. Use that new function in the new bbp_move_topic_handler function, which handles the moving of a topic from one forum to another and makes sure the forum counts stay accurate.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-includes/bbp-hooks.php

    r2895 r2907  
    165165add_action( 'bbp_spammed_topic',   'bbp_update_topic_walker' );
    166166add_action( 'bbp_unspammed_topic', 'bbp_update_topic_walker' );
    167 add_action( 'bbp_move_topic',      'bbp_update_topic_walker' );
    168167
    169168// Update reply branch
     
    173172add_action( 'bbp_spammed_reply',   'bbp_update_reply_walker' );
    174173add_action( 'bbp_unspammed_reply', 'bbp_update_reply_walker' );
    175 add_action( 'bbp_move_topic',      'bbp_update_reply_walker' );
    176174
    177175// Custom Template - should be called at the end
Note: See TracChangeset for help on using the changeset viewer.