Opened 15 years ago
Closed 15 years ago
#3876 closed defect (bug) (worksforme)
custom groups slug backwards compatibility problem (BP_GROUPS_SLUG)
| Reported by: | zbacsi | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Groups | Version: | 1.5.1 |
| Severity: | normal | Keywords: | reporter-feedback |
| Cc: |
Description
In the file bp-groups/bp-groups-loader.php the BP_GROUPS_SLUG is defined ignoring the custom groups slug.
Line 67 should be changed from:
define( 'BP_GROUPS_SLUG', $this->id );
to:
define( 'BP_GROUPS_SLUG', isset( $bp->pages->groups->slug ) ? $bp->pages->groups->slug : $this->id );
Change History (2)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
The logic that you describe already happens at https://buddypress.trac.wordpress.org/browser/trunk/bp-groups/bp-groups-loader.php#L80 As for line 67, BP_GROUPS_SLUG is only defined in this way if it's not already defined - which, in your case, it should be.
Can you give more details on how you are defining BP_GROUPS_SLUG? When I do it in my wp-config.php file:
define( 'BP_GROUPS_SLUG', 'foo' );it works fine. Where and how are you defining yours?