[buddypress-trac] [BuddyPress Trac] #7370: Slug Constants causing problems

buddypress-trac noreply at wordpress.org
Tue Dec 20 09:16:33 UTC 2016


#7370: Slug Constants causing problems
-------------------------------+------------------------------
 Reporter:  buddycore          |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  low                |   Milestone:  Awaiting Review
Component:  Activity           |     Version:  2.7.2
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |
-------------------------------+------------------------------
Changes (by DJPaul):

 * keywords:   => reporter-feedback


Comment:

 Using a default WordPress theme and a clean site, I can't cause any
 navigation to "vanish". Nor do I get any errors or warnings in my logs.

 Looking at the code (I haven't checked the documentation),
 `BP_ACTIVITY_SLUG` is used to change the `slug` for the Activity
 component, e.g. `example.com/members/admin/activity/`. This is not the
 same as the top-level directory `root_slug`, which is e.g.
 `example.com/activity/`.

 I have by no means tested entire functionality, but at very basic levels,
 using the constant definition provided in this ticket, my profile Activity
 URLs look like `http://buddypress.dev/members/admin/custom-
 stream/favorites/` and appear to work fine. `bp_get_activity_slug()` also
 returns what I set the constant to.

 @buddycore I think this must be caused by some unusual conflict with a
 custom code, a themes or perhaps something more simpler. After you set the
 constant, and visit the pages, did you get any PHP errors or warnings in
 your log? If you did, this might explain why the page appears to load, but
 caused some other part to vanish.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7370#comment:2>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list