Skip to:

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#7060 closed defect (bug) (no action required)

discrepancy between Members and Groups Directories

Reported by: shanebp's profile shanebp Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.5.0
Component: Core Keywords:


Using BP 2.5.2

Trying to add a custom tab and load a custom template on both the Members and Groups Directories.

  1. Groups Directory - Works as expected

  1. Members Directory

Does not work as expected.

The same approach is used for both Item 1 and Item 2 - with different results.

In Item 1 - conditionals like bp_is_groups_component() return true
But in Item 2 - conditionals like bp_is_members_component() return false

The custom Members template can be loaded by resorting to url parsing - see Gist - but this error is thrown:

Notice: Trying to get property of non-object in .../wp-includes/query.php on line 4520

What is the cause of this discrepancy between Groups and Members Directories?

If not a bug - What is the solution?

Change History (2)

#1 @DJPaul
8 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

@shanebp I think you might have already, but opening this on the support forum then asking us in Slack is probably the best way to get help. You know we don't use Trac for support. :)

#2 @DJPaul
8 years ago

  • Component changed from API to Core
Note: See TracTickets for help on using tickets.