Skip to:
Content

BuddyPress.org

Opened 4 months ago

Closed 4 months ago

#9049 closed defect (bug) (fixed)

Improve the reset slugs tool

Reported by: imath's profile imath Owned by: imath's profile imath
Milestone: 12.1.0 Priority: normal
Severity: normal Version: 12.0.0
Component: Route Parser Keywords: has-patch
Cc:

Description

In support forums I noticed there were cases when a suffix were added to default slugs. Although I wasn't able to identify the reason yet, I believe the reset tool should first remove all existing buddypress post type before recreating them.

Change History (3)

This ticket was mentioned in PR #207 on buddypress/buddypress by @imath.


4 months ago
#1

  • Keywords has-patch added; needs-patch removed

Delete the post meta storing custom slugs
Update the directoty page slug with BP default ones

Trac ticket: https://buddypress.trac.wordpress.org/ticket/9049

#2 @imath
4 months ago

In 13680:

Improve the tool to reset slugs to BP default ones

  • Instead of deleting all component directory entries, only remove the ones that are not active.
  • Remove the post meta used to store custom slugs for each active components
  • Update the directory post names for active components using default BP slugs.

See #9049 (trunk)
Closes https://github.com/buddypress/buddypress/pull/207

#3 @imath
4 months ago

  • Owner set to imath
  • Resolution set to fixed
  • Status changed from new to closed

In 13681:

Improve the tool to reset slugs to BP default ones

  • Instead of deleting all component directory entries, only remove the ones that are not active.
  • Remove the post meta used to store custom slugs for each active components
  • Update the directory post names for active components using default BP slugs.

Fixes #9049 (branch 12.0)

Note: See TracTickets for help on using tickets.