Skip to:
Content

bbPress.org


Ignore:
Timestamp:
11/04/2012 02:11:16 AM (13 years ago)
Author:
johnjamesjacoby
Message:

Capabilities:

  • Remove advanced capabilities code, template part, and UI helpers.
  • This has been replaced by the forums roles selection.
  • See #1939.
File:
1 edited

Legend:

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

    r4249 r4330  
    2727        'delete_posts'        => 'delete_forums',
    2828        'delete_others_posts' => 'delete_others_forums'
    29     ) );
    30 }
    31 
    32 /**
    33  * Return forum post-type capabilities, used when registering the post type
    34  *
    35  * @since bbPress (r4163)
    36  *
    37  * @return array of forums capabilities
    38  */
    39 function bbp_get_forums_capabilities() {
    40     return apply_filters( 'bbp_get_forums_capabilities', array(
    41         'publish_forums',
    42         'edit_forums',
    43         'edit_others_forums',
    44         'delete_forums',
    45         'delete_others_forums',
    46         'read_private_forums',
    47         'read_hidden_forums'
    4829    ) );
    4930}
Note: See TracChangeset for help on using the changeset viewer.