WordPress.org

Making WordPress.org

Opened 17 months ago

Last modified 17 months 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:
Cc:

Description

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.