Skip to:
Content

bbPress.org

Changes between Initial Version and Version 1 of Ticket #2327


Ignore:
Timestamp:
05/05/2013 06:35:10 PM (9 years ago)
Author:
johnjamesjacoby
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2327 – Description

    initial v1  
    1 The 'bbp_is_forum_public()` check in https://bbpress.trac.wordpress.org/browser/trunk/includes/extend/buddypress/activity.php#L427 is not working properly. This method appears to run twice on topic creation - once when the topic is created, and then again on the `bbp_new_topic` hook. The first time around, the `$forum_id` variable is set to 0, so `! bbp_is_forum_public()` check is returning `true`, presumably because forum 0 does not exist and therefore is not public. The second time, the correct `$forum_id` is getting passed through, but its return value is not respecting the group's status (public vs private/hidden).
     1The `bbp_is_forum_public()` check in https://bbpress.trac.wordpress.org/browser/trunk/includes/extend/buddypress/activity.php#L427 is not working properly. This method appears to run twice on topic creation - once when the topic is created, and then again on the `bbp_new_topic` hook. The first time around, the `$forum_id` variable is set to 0, so `! bbp_is_forum_public()` check is returning `true`, presumably because forum 0 does not exist and therefore is not public. The second time, the correct `$forum_id` is getting passed through, but its return value is not respecting the group's status (public vs private/hidden).
    22
    33I haven't dug any deeper, as I'm not sure how bbPress's forum privacy is set against BP group privacy, and I figured you might know just where to look :)