Changeset 2656 for trunk/bp-forums.php
- Timestamp:
- 02/10/2010 09:13:14 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-forums.php
r2641 r2656 29 29 do_action( 'bp_forums_setup' ); 30 30 } 31 add_action( ' plugins_loaded', 'bp_forums_setup', 5);31 add_action( 'bp_setup_globals', 'bp_forums_setup' ); 32 32 add_action( 'admin_head', 'bp_forums_setup', 2 ); 33 33 … … 45 45 bp_core_add_root_component( BP_FORUMS_SLUG ); 46 46 } 47 add_action( ' plugins_loaded', 'bp_forums_setup_root_component', 2);47 add_action( 'bp_setup_root_components', 'bp_forums_setup_root_component' ); 48 48 49 49 function bp_forums_directory_forums_setup() { … … 499 499 } 500 500 501 // List actions to clear super cached pages on, if super cache is installed502 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' );505 501 506 502 function bp_forums_filter_caps( $allcaps ) { … … 536 532 add_action( 'init', 'bp_forums_filter_template_paths' ); 537 533 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 543 add_action( 'bp_forums_new_forum', 'bp_core_clear_cache' ); 544 add_action( 'bp_forums_new_topic', 'bp_core_clear_cache' ); 545 add_action( 'bp_forums_new_post', 'bp_core_clear_cache' ); 546 538 547 ?>
Note: See TracChangeset
for help on using the changeset viewer.