in WordPress

Find Shared Taxonomy Terms in WordPress

In the upcoming WordPress 4.2 release, whenever a shared term is updated it will be split into separate terms. If you are running any plugins or themes that store term IDs they may change after being split, which can cause data integrity issues. You can find an in-depth explanation and guide for how to update your code over at the Make WordPress Core blog.

It’s not easy to tell at a glance whether this issue will affect your site, so I’ve built a small plugin, Find Shared Terms that will detect any shared terms in your WordPress install and list them along with the taxonomies they belong to. This may be helpful in determining whether you need to refactor any custom code that stores term IDs or upgrade any of your plugins prior to the 4.2 upgrade. If your site doesn’t have any shared terms, and you’ve already upgraded to 4.1 then you’re in the clear!

If the plugin does detect shared terms, it doesn’t necessarily mean you’ll have an issue, but you’ll want to review any custom code you’ve written to check for anything that’s storing term IDs and check your list of plugins against the plugins listed in the Make post.

Pull Requests are welcome on Github.

Download Find Shared Terms

Write a Comment

Comment

  1. Thank you for your super plug in. Easy to install, easy to use. I was worried about the WP 4.2 update. I have tags and categories that are “limo” and “party bus”. I looked at my slugs and thought WP had added the number “2”. After running your plug in I am even more convinced that I won’t have this particular problem with this update. One less thing to worry about. (I was a lil scared by GIT, but I figured it out. Links to the WP plug in page instead of GIT would be more soothing to a WP newbies. Just sayin. Although I was in the WP developer blog when I snagged the link, so I guess those guys expect GIT?)
    Anyway thanx
    J

Webmentions

  • New Plugin Detects Shared Terms in WordPress Ahead of Taxonomy Term Splitting in 4.2 April 24, 2015

    […] custom code that stores term IDs or upgrade any of your plugins prior to the 4.2 upgrade,” he said. “If your site doesn’t have any shared terms, and you’ve already upgraded to 4.1 then […]