Changeset 3605 for branches/2.0/bbp-includes/bbp-core-hooks.php
- Timestamp:
- 11/14/2011 03:33:48 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0/bbp-includes/bbp-core-hooks.php
r3515 r3605 37 37 add_action( 'generate_rewrite_rules', 'bbp_generate_rewrite_rules', 10 ); 38 38 add_action( 'wp_enqueue_scripts', 'bbp_enqueue_scripts', 10 ); 39 add_action( 'template_redirect', 'bbp_template_redirect', 10 ); 39 40 add_filter( 'template_include', 'bbp_template_include', 10 ); 40 41 … … 228 229 add_action( 'bbp_activation', 'flush_rewrite_rules' ); 229 230 add_action( 'bbp_deactivation', 'flush_rewrite_rules' ); 231 232 // Redirect user if needed 233 add_action( 'bbp_template_redirect', 'bbp_check_user_edit', 10 ); 234 add_action( 'bbp_template_redirect', 'bbp_check_topic_edit', 10 ); 235 add_action( 'bbp_template_redirect', 'bbp_check_reply_edit', 10 ); 236 add_action( 'bbp_template_redirect', 'bbp_check_topic_tag_edit', 10 ); 230 237 231 238 /** … … 710 717 } 711 718 719 /** Theme Permissions *********************************************************/ 720 721 /** 722 * The main action used for redirecting bbPress theme actions that are not 723 * permitted by the current_user 724 * 725 * @since bbPress (r3605) 726 * 727 * @uses do_action() 728 */ 729 function bbp_template_redirect() { 730 do_action( 'bbp_template_redirect' ); 731 } 732 712 733 ?>
Note: See TracChangeset
for help on using the changeset viewer.