xwp / stream

🗄️ Stream plugin for WordPress

Home Page:https://wordpress.org/plugins/stream/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Determine if any changes are required for upcoming "term splitting"

fjarrett opened this issue · comments

It was recently announced that WordPress 4.2 will include a long-awaited fix for terms that share the same slug across multiple taxonomies.

We need to determine what changes will be necessary for WP Stream (if any) to ensure full backwards compatibility for users.

I have tested this in WordPress 4.2-RC1 and WP Stream does save the new object_id when term splitting occurs, which is the correct behavior. However, previous records for the term that was split won't have the correct object_id.

We can remedy this by using wp_get_split_term() function which accepts the old term ID and taxonomy as parameters and returns the new term ID. And the only thing that needs it is taxonomy Action Links.