Skip to:
Content

bbPress.org

Ticket #2140: 2140.patch

File 2140.patch, 856 bytes (added by johnjamesjacoby, 14 years ago)

Address the recursive map_topic_meta_caps() issue

  • includes/extend/buddypress/group.php

     
    111111                add_filter( 'post_type_link',            array( $this, 'post_type_link'               ), 10, 2 );
    112112
    113113                // Allow group member to view private/hidden forums
    114                 add_filter( 'bbp_map_topic_meta_caps',   array( $this, 'map_topic_meta_caps'          ), 10, 4 );
    115                 add_filter( 'bbp_map_reply_meta_caps',   array( $this, 'map_topic_meta_caps'          ), 10, 4 );
     114                add_filter( 'bbp_map_meta_caps',         array( $this, 'map_topic_meta_caps'          ), 10, 4 );
     115                add_filter( 'bbp_map_meta_caps',         array( $this, 'map_topic_meta_caps'          ), 10, 4 );
    116116
    117117                // Map group forum activity items to groups
    118118                add_filter( 'bbp_before_record_activity_parse_args', array( $this, 'map_activity_to_group' ) );