Changeset 7257 for branches/2.6/src/includes/core/capabilities.php
- Timestamp:
- 06/23/2024 09:09:20 PM (20 months ago)
- File:
-
- 1 edited
-
branches/2.6/src/includes/core/capabilities.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/2.6/src/includes/core/capabilities.php
r6777 r7257 286 286 function bbp_add_forums_roles( $wp_roles = null ) { 287 287 288 // Maybe initialize WP_Roles just-in-time, but 289 if ( empty( $wp_roles ) && ! doing_action( 'wp_roles_init' ) ) { 290 $wp_roles = wp_roles(); 291 } 292 293 // Bail if unexpected param type 294 if ( ! is_a( $wp_roles, 'WP_Roles' ) ) { 295 return; 296 } 297 288 298 // Get the dynamic roles 289 299 $bbp_roles = bbp_get_dynamic_roles();
Note: See TracChangeset
for help on using the changeset viewer.