Making WordPress.org

Opened 2 years ago

Last modified 2 years ago

#1880 closed defect

Add redirect for old numeric topic slugs — at Initial Version

Reported by: ocean90 Owned by:
Milestone: Priority: normal
Component: International Forums Keywords:


It seems like bbPress 1.x had a fallback to the topic ID, see https://www.google.com/search?q=site%3Ahttps%3A%2F%2Fja.forums.wordpress.org%2Ftopic%2F

A possible solution:

  • Store the old topic ID in a meta field _old_topic_id
  • In the redirect handler check if the slug of a topic is numeric
  • Query post meta for _old_topic_id
  • If meta exists redirect to new slug (cache result)
  • If it doesn't exist continue with the regular redirect (cache result)

Change History (0)

Note: See TracTickets for help on using tickets.