Skip to:
Content

bbPress.org


Ignore:
Timestamp:
03/25/2011 11:26:30 AM (15 years ago)
Author:
johnjamesjacoby
Message:

Fix bug where sub forums would not be visible when created, as they lack the required postmeta values for topics/replies, and parent forums would not have updated subforum counts.

File:
1 edited

Legend:

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

    r2958 r2965  
    106106add_action( 'bbp_template_notices', 'bbp_notice_edit_user_success'           );
    107107add_action( 'bbp_template_notices', 'bbp_notice_edit_user_is_super_admin', 2 );
     108
     109// New/Edit Forum
     110if ( is_admin() )
     111        add_action( 'wp_insert_post', 'bbp_new_forum_admin_handler', 10, 2 );
     112
     113// Update forum branch
     114add_action( 'bbp_trashed_forum',   'bbp_update_forum_walker' );
     115add_action( 'bbp_untrashed_forum', 'bbp_update_forum_walker' );
     116add_action( 'bbp_deleted_forum',   'bbp_update_forum_walker' );
     117add_action( 'bbp_spammed_forum',   'bbp_update_forum_walker' );
     118add_action( 'bbp_unspammed_forum', 'bbp_update_forum_walker' );
    108119
    109120// New/Edit Reply
Note: See TracChangeset for help on using the changeset viewer.