[buddypress-trac] [BuddyPress Trac] #6734: `groups_get_groups()` doesn't distinguish between `0` and falsey values for `user_id`

buddypress-trac noreply at wordpress.org
Mon Nov 23 18:44:46 UTC 2015


#6734: `groups_get_groups()` doesn't distinguish between `0` and falsey values for
`user_id`
-------------------------------------------------+-------------------------
 Reporter:  boonebgorges                         |       Owner:
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Under
Component:  Component - Groups                   |  Consideration
 Severity:  normal                               |     Version:
 Keywords:  2nd-opinion needs-patch needs-unit-  |  Resolution:
  tests                                          |
-------------------------------------------------+-------------------------

Comment (by henry.wright):

 Just my two cents' worth:

 > I'll look through the plugin repo to see how/whether groups_get_groups()
 is being used

 It might also be worth checking the forum for any code snippets that use
 {{{groups_get_groups()}}}

 > do we think that anyone is passing 0 as a user ID and *expecting* all
 groups?

 Probably, but I don't think you should hold back with a change such as
 this (even if it may be a 'breaking' change) because it's actually fixing
 a problem.

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


More information about the buddypress-trac mailing list