Changeset 3768 for branches/plugin/bbp-includes/bbp-core-actions.php
- Timestamp:
- 02/27/2012 02:38:36 AM (14 years ago)
- File:
-
- 1 edited
-
branches/plugin/bbp-includes/bbp-core-actions.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin/bbp-includes/bbp-core-actions.php
r3766 r3768 122 122 add_action( 'bbp_template_notices', 'bbp_template_notices' ); 123 123 124 // Caps & Roles125 add_action( 'bbp_activation', 'bbp_add_roles', 1 );126 add_action( 'bbp_activation', 'bbp_add_caps', 2 );127 add_action( 'bbp_deactivation', 'bbp_remove_caps', 1 );128 add_action( 'bbp_deactivation', 'bbp_remove_roles', 2 );129 130 // Options & Settings131 add_action( 'bbp_activation', 'bbp_add_options', 1 );132 133 // Multisite134 add_action( 'bbp_new_site', 'bbp_add_roles', 2 );135 add_action( 'bbp_new_site', 'bbp_add_caps', 4 );136 add_action( 'bbp_new_site', 'bbp_add_options', 6 );137 138 124 // Parse the main query 139 125 add_action( 'parse_query', 'bbp_parse_query', 2 ); … … 239 225 add_action( 'bbp_new_topic', 'bbp_global_access_auto_role' ); 240 226 add_action( 'bbp_new_reply', 'bbp_global_access_auto_role' ); 241 242 // Flush rewrite rules243 add_action( 'bbp_activation', 'flush_rewrite_rules' );244 add_action( 'bbp_deactivation', 'flush_rewrite_rules' );245 227 246 228 /** … … 298 280 299 281 /** 300 * When a new site is created in a multisite installation, run the activation301 * routine on that site302 *303 * @since bbPress (r3283)304 *305 * @param int $blog_id306 * @param int $user_id307 * @param string $domain308 * @param string $path309 * @param int $site_id310 * @param array() $meta311 */312 function bbp_new_site( $blog_id, $user_id, $domain, $path, $site_id, $meta ) {313 314 // Switch to the new blog315 switch_to_blog( $blog_id );316 317 // Do the bbPress activation routine318 do_action( 'bbp_new_site' );319 320 // restore original blog321 restore_current_blog();322 }323 add_action( 'wpmu_new_blog', 'bbp_new_site', 10, 6 );324 325 /**326 282 * Plugin Dependency 327 283 *
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)