[buddypress-trac] [BuddyPress] #2645: define( 'BP_GROUPS_SLUG', 'new_name' )
buddypress-trac at lists.automattic.com
buddypress-trac at lists.automattic.com
Thu Sep 23 09:24:48 UTC 2010
#2645: define( 'BP_GROUPS_SLUG', 'new_name' )
---------------------+------------------------------------------------------
Reporter: svenl77 | Owner:
Type: defect | Status: new
Priority: normal | Milestone: 1.2.6
Component: Core | Keywords:
---------------------+------------------------------------------------------
Comment(by svenl77):
Ok, but if I want to know the current_component, I have to use
$bp->current_component.
And this will give me the new slug and not the current component.
For example, If I change the groups slug to "gruppen"
current_component:
gruppen
The Id from groups is groups and not the new slug "gruppen".
groups:
stdClass Object
(
[id] => groups
[table_name] => wp_bp_groups
[table_name_members] => wp_bp_groups_members
[table_name_groupmeta] => wp_bp_groups_groupmeta
[format_notification_function] => groups_format_notifications
[slug] => gruppen
...
I thought, $bp->current_component should give the current component name
and not the slug of the component.
I will change my plugin, to use the slug, and hope, that there won't be
plugins, where the
$bp->current_component is different from the slug.
Thanks Sven
--
Ticket URL: <http://trac.buddypress.org/ticket/2645#comment:3>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list