Skip to:
Content

bbPress.org


Ignore:
Timestamp:
05/26/2017 09:45:00 PM (7 years ago)
Author:
johnjamesjacoby
Message:

Users: Connect bbp_allow_forums_of_user filter to bbp_get_excluded_forum_ids filter.

This prevents excluding private or hidden forums that the currently logged in user can explicitly moderate.

Fixes #2593.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/core/filters.php

    r6381 r6431  
    256256add_filter( 'bbp_get_reply_author_link',    'bbp_suppress_private_author_link', 10, 2 );
    257257
     258// Allow private & hidden forum details for moderators
     259add_filter( 'bbp_get_excluded_forum_ids', 'bbp_allow_forums_of_user', 10, 2 );
     260
    258261// Topic and reply author display names
    259262add_filter( 'bbp_get_topic_author_display_name', 'wptexturize'   );
Note: See TracChangeset for help on using the changeset viewer.