[buddypress-trac] [BuddyPress] #3578: Determine $bp->component->root_slug automatically

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Wed Sep 14 15:00:34 UTC 2011

#3578: Determine $bp->component->root_slug automatically
 Reporter:  boonebgorges  |      Owner:
     Type:  enhancement   |     Status:  new
 Priority:  normal        |  Milestone:  1.5.1
Component:  Core          |    Version:  1.5
 Severity:  normal        |   Keywords:
 One of the parameters for BP_Components::setup_globals() is root_slug. But
 there's no reason (that I can think of) why this should need to be
 provided manually. The root_slug should *always* match the path of the
 corresponding item in $bp->pages.

 On that note, here are two different proposals:
 1) Don't ask for a root_slug at all from component classes. Just take a
 moment in BP_Component::setup_globals() to get it out of $bp->pages.
 2) Use the value out of $bp->pages as a default

 I think that we can safely go with (1), but IMO the least we can do is
 (2). (FWIW, I think that (2) can - and should - be slipped in for BP 1.5,
 while there is not enough time for (1).)


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

More information about the buddypress-trac mailing list