[buddypress-trac] [BuddyPress] #4827: groups_create_group() doesn't set total_member_count

buddypress-trac noreply at wordpress.org
Thu Jun 6 23:24:39 UTC 2013


#4827: groups_create_group() doesn't set total_member_count
--------------------------+---------------------------
 Reporter:  rogercoathup  |       Owner:  boonebgorges
     Type:  enhancement   |      Status:  closed
 Priority:  normal        |   Milestone:  1.8
Component:  Groups        |     Version:  1.7
 Severity:  minor         |  Resolution:  fixed
 Keywords:  has-patch     |
--------------------------+---------------------------
Changes (by boonebgorges):

 * owner:   => boonebgorges
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"7172"]:
 {{{
 #!CommitTicketReference repository="" revision="7172"
 Set initial group metadata in groups_create_group() rather than action
 function

 Groups created through the user interface have two pieces of metadata set
 in
 groups_action_create_group(): the total_member_count and the
 last_activity.
 (Both items are needed for newly created groups to show up in
 directories.)
 However, the placement of these groups_update_groupmeta() calls - in what
 is
 essentially a controller function - meant that groups created
 programatically
 using groups_create_group() did not have their complete metadata set.
 Moving
 the metadata setting into groups_create_group() means one less step for
 plugins
 and other scripts that create groups programatically.

 Fixes #4827

 Props ericlewis, rogercoathup
 }}}

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4827#comment:3>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list