[buddypress-trac] [BuddyPress Trac] #8212: Do not use random number for resolve slug group conflict

buddypress-trac noreply at wordpress.org
Thu Jan 16 16:26:15 UTC 2020


#8212: Do not use random number for resolve slug group conflict
-------------------------+-----------------------------
 Reporter:  ExoConsult   |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Core         |    Version:
 Severity:  normal       |   Keywords:
-------------------------+-----------------------------
 Hello,

 An enhancement could be made on how slug of a group is created when
 there's a conflict (see groups_check_slug method in the file bp-groups-
 function.php - line 439)

 At the moment, a random number is added at the end of the existing
 "default" slug group. But a better choice could be to iterate on a number
 until a non existing slug is found (the same way wordpress handles slug of
 a post).


 See Worpdress method "wp_unique_post_slug" in file "wp-includes\post.php"
 (line 4294)

 Regards,
 Didier

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8212>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list