Skip to:
Content

BuddyPress.org

Changeset 2656 for trunk/bp-forums.php


Ignore:
Timestamp:
02/10/2010 09:13:14 PM (15 years ago)
Author:
apeatling
Message:

Moving BuddyPress registration functions to their own actions. Props jjj

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-forums.php

    r2641 r2656  
    2929    do_action( 'bp_forums_setup' );
    3030}
    31 add_action( 'plugins_loaded', 'bp_forums_setup', 5 );
     31add_action( 'bp_setup_globals', 'bp_forums_setup' );
    3232add_action( 'admin_head', 'bp_forums_setup', 2 );
    3333
     
    4545    bp_core_add_root_component( BP_FORUMS_SLUG );
    4646}
    47 add_action( 'plugins_loaded', 'bp_forums_setup_root_component', 2 );
     47add_action( 'bp_setup_root_components', 'bp_forums_setup_root_component' );
    4848
    4949function bp_forums_directory_forums_setup() {
     
    499499}
    500500
    501 // List actions to clear super cached pages on, if super cache is installed
    502 add_action( 'bp_forums_new_forum', 'bp_core_clear_cache' );
    503 add_action( 'bp_forums_new_topic', 'bp_core_clear_cache' );
    504 add_action( 'bp_forums_new_post', 'bp_core_clear_cache' );
    505501
    506502function bp_forums_filter_caps( $allcaps ) {
     
    536532add_action( 'init', 'bp_forums_filter_template_paths' );
    537533
     534
     535/********************************************************************************
     536 * Caching
     537 *
     538 * Caching functions handle the clearing of cached objects and pages on specific
     539 * actions throughout BuddyPress.
     540 */
     541
     542// List actions to clear super cached pages on, if super cache is installed
     543add_action( 'bp_forums_new_forum', 'bp_core_clear_cache' );
     544add_action( 'bp_forums_new_topic', 'bp_core_clear_cache' );
     545add_action( 'bp_forums_new_post', 'bp_core_clear_cache' );
     546
    538547?>
Note: See TracChangeset for help on using the changeset viewer.