[buddypress-trac] [BuddyPress] #2698: bp_has_groups can't read slug
buddypress-trac at lists.automattic.com
buddypress-trac at lists.automattic.com
Mon Mar 12 13:48:11 UTC 2012
#2698: bp_has_groups can't read slug
--------------------------+-----------------------------
Reporter: kayue | Owner:
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: Future Release
Component: Groups | Version:
Severity: normal | Resolution:
Keywords: needs-patch |
--------------------------+-----------------------------
Comment (by boonebgorges):
It will be fixed when someone patches it :)
As DJPaul suggests above, for the moment you can use the 'slug' parameter
by also passing
{{{ 'type' => 'single_group'}}}
into the bp_has_groups() array. Eg,
{{{
$arrrr = array(
'slug' => 'gibberish',
'max' => '1',
'user_id' => $current_user->ID,
'type' => 'single_group'
);
if ( bp_has_groups ( $arrrr ) ) { // ...
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/2698#comment:6>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list