[buddypress-trac] [BuddyPress Trac] #6014: Include BP Edit Group Slug into the core

buddypress-trac noreply at wordpress.org
Thu Mar 23 23:03:11 UTC 2017


#6014: Include BP Edit Group Slug into the core
-------------------------+-----------------------------
 Reporter:  slaFFik      |       Owner:  dcavins
     Type:  enhancement  |      Status:  accepted
 Priority:  normal       |   Milestone:  Future Release
Component:  Groups       |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |
-------------------------+-----------------------------
Changes (by dcavins):

 * owner:   => dcavins
 * status:  new => accepted


Comment:

 Hi all-

 Here's a first patch on allowing editable group slugs. It addresses these
 points:
 • Adds a form field to the group edit screen in wp-admin and logic to save
 the changes.
 • Stores previous slugs in group meta.
 • Adds action on `bp_groups_setup_globals` to see if the current action
 refers to an old group slug. If yes, reset the current action before the
 groups component is set up, so the setup will refer to the correct group.
 • Adds activity item logic for group details being changed.
 
• Changes groups_edit_base_group_details() to accept an array of
 arguments.
 • Tests for new behaviors.

 We could make this available in the front end too, via the group manage >
 details tab. I've added the save logic and the activity item creation
 logic, but not the form, because I'm not sure we want to go there. If yes,
 would we want this to be restricted to site admins or group admins (or
 probably it would be filterable, but what would the default be)?

 Thanks for your comments,

 -David

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


More information about the buddypress-trac mailing list