Changeset 4354
- Timestamp:
- 11/07/2012 09:04:37 AM (12 years ago)
- Location:
- trunk/includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/core/capabilities.php
r4352 r4354 215 215 216 216 // Participant/Default 217 case bbp_get_ anonymous_role() :217 case bbp_get_visitor_role() : 218 218 case bbp_get_participant_role() : 219 219 default : … … 380 380 ), 381 381 382 // Anonymous383 bbp_get_ anonymous_role() => array(384 'name' => __( ' Anonymous', 'bbpress' ),385 'capabilities' => bbp_get_caps_for_role( bbp_get_ anonymous_role() )382 // Visitor 383 bbp_get_visitor_role() => array( 384 'name' => __( 'Visitor', 'bbpress' ), 385 'capabilities' => bbp_get_caps_for_role( bbp_get_visitor_role() ) 386 386 ), 387 387 … … 455 455 456 456 /** 457 * The anonymous role for any user without a forum role457 * The visitor role for any registered user without a set forum role. 458 458 * 459 459 * @since bbPress (r3860) 460 460 * 461 * @uses apply_filters() Allow override of hardcoded anonymousrole461 * @uses apply_filters() Allow override of hardcoded visitor role 462 462 * @return string 463 463 */ 464 function bbp_get_ anonymous_role() {465 return apply_filters( 'bbp_get_ anonymous_role', 'bbp_anonymous' );464 function bbp_get_visitor_role() { 465 return apply_filters( 'bbp_get_visitor_role', 'bbp_visitor' ); 466 466 } 467 467 -
trunk/includes/users/capabilities.php
r4352 r4354 241 241 'contributor' => $default_role, 242 242 'subscriber' => $default_role, 243 '' => bbp_get_ anonymous_role()243 '' => bbp_get_visitor_role() 244 244 ) ); 245 245 }
Note: See TracChangeset
for help on using the changeset viewer.