Skip to:
Content

bbPress.org

Changeset 4354


Ignore:
Timestamp:
11/07/2012 09:04:37 AM (12 years ago)
Author:
johnjamesjacoby
Message:

Capabilities:

  • Rename 'anonymous' role to 'visitor' to avoid confusion with logged-out anonymity.
  • Renames functions, keys, filters, et all.
  • See #1939.
Location:
trunk/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/core/capabilities.php

    r4352 r4354  
    215215
    216216        // Participant/Default
    217         case bbp_get_anonymous_role()   :
     217        case bbp_get_visitor_role()   :
    218218        case bbp_get_participant_role() :
    219219        default :
     
    380380        ),
    381381
    382         // Anonymous
    383         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() )
    386386        ),
    387387
     
    455455
    456456/**
    457  * The anonymous role for any user without a forum role
     457 * The visitor role for any registered user without a set forum role.
    458458 *
    459459 * @since bbPress (r3860)
    460460 *
    461  * @uses apply_filters() Allow override of hardcoded anonymous role
     461 * @uses apply_filters() Allow override of hardcoded visitor role
    462462 * @return string
    463463 */
    464 function bbp_get_anonymous_role() {
    465     return apply_filters( 'bbp_get_anonymous_role', 'bbp_anonymous' );
     464function bbp_get_visitor_role() {
     465    return apply_filters( 'bbp_get_visitor_role', 'bbp_visitor' );
    466466}
    467467
  • trunk/includes/users/capabilities.php

    r4352 r4354  
    241241        'contributor'   => $default_role,
    242242        'subscriber'    => $default_role,
    243         ''              => bbp_get_anonymous_role()
     243        ''              => bbp_get_visitor_role()
    244244    ) );
    245245}
Note: See TracChangeset for help on using the changeset viewer.