Skip to:
Content

BuddyPress.org

Changes between Version 1 and Version 2 of Ticket #7610, comment 7


Ignore:
Timestamp:
04/08/2018 12:16:26 AM (6 years ago)
Author:
r-a-y
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #7610, comment 7

    v1 v2  
    1111By the time, we check for `groups_request_membership` when registering the nav item, the return value is already `true` for super admins:
    1212https://buddypress.trac.wordpress.org/browser/tags/3.0.0-beta1/src/bp-groups/classes/class-bp-groups-component.php#L619
     13https://buddypress.trac.wordpress.org/browser/tags/3.0.0-beta1/src/bp-groups/bp-groups-filters.php#L229
    1314
    1415To fix this, we should set the return value to `false` before doing our request membership check.