[buddypress-trac] [BuddyPress] #3398: Defining BP_ACTIVITY_SLUG breaks profile pages

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Wed Jul 27 23:44:02 UTC 2011

#3398: Defining BP_ACTIVITY_SLUG breaks profile pages
 Reporter:  r-a-y   |      Owner:
     Type:  defect  |     Status:  new
 Priority:  normal  |  Milestone:  Awaiting Review
Component:  Core    |    Version:  1.3
 Severity:  normal  |   Keywords:  has-patch
 As noted in the dev chat, defining BP_X_SLUG should still work in BP 1.3.

 However, if we define BP_ACTIVITY_SLUG, profile pages break:

 When we define BP_ACTIVITY_SLUG, the current component should in theory
 still be 'activity', however this changes to whatever we define

 One way around this problem is to:
 * set $bp->default_component to bp_get_activity_slug() in the Members
 * change bp_is_activity_component() to look for `bp_get_activity_slug()`
 as well

 I'm not too fond of this approach, but this gets the job done without too
 much effort.

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/3398>
BuddyPress <http://buddypress.org/>

More information about the buddypress-trac mailing list