Skip to:
Content

bbPress.org

Changeset 4717


Ignore:
Timestamp:
01/25/2013 05:16:24 PM (11 years ago)
Author:
johnjamesjacoby
Message:

Supplemental removal of group forum capability mapping after group forum is displayed. See #2140.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/extend/buddypress/group.php

    r4716 r4717  
    7777
    7878        // Possibly redirect
    79         add_action( 'bbp_template_redirect',         array( $this, 'redirect_canonical'        ) );
    80 
    81         // Remove topic cap map when view is done
    82         add_action( 'bbp_after_group_forum_display', array( $this, 'remove_topic_meta_cap_map' ) );
     79        add_action( 'bbp_template_redirect',         array( $this, 'redirect_canonical'              ) );
     80
     81        // Remove group forum cap map when view is done
     82        add_action( 'bbp_after_group_forum_display', array( $this, 'remove_group_forum_meta_cap_map' ) );
    8383    }
    8484
     
    225225     * @since bbPress (r4434)
    226226     */
    227     public function remove_topic_meta_cap_map() {
    228         remove_filter( 'bbp_map_topic_meta_caps', array( $this, 'map_topic_meta_caps' ), 10, 4 );
    229         remove_filter( 'bbp_map_reply_meta_caps', array( $this, 'map_topic_meta_caps' ), 10, 4 );
     227    public function remove_group_forum_meta_cap_map() {
     228        remove_filter( 'bbp_map_meta_caps', array( $this, 'map_group_forum_meta_caps' ), 99, 4 );
    230229    }
    231230
Note: See TracChangeset for help on using the changeset viewer.