[wp-trac] [WordPress Trac] #30261: Split all existing shared taxonomy terms on WP upgrade
WordPress Trac
noreply at wordpress.org
Wed Nov 5 18:35:05 UTC 2014
#30261: Split all existing shared taxonomy terms on WP upgrade
--------------------------+----------------------------
Reporter: boonebgorges | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Taxonomy | Version:
Severity: normal | Keywords: needs-patch
Focuses: |
--------------------------+----------------------------
As of [30241], updating an existing shared term (via `wp_update_term()`)
will force that term to be split into two separate terms. This effectively
solves the problem of updates to a term in one taxonomy causing updates to
take place in other taxonomies as well. (See #5809.) However, the ongoing
existence of shared terms in the database stands in the way of other
improvements to the taxonomy component, such as the introduction of
termmeta. So we should figure out a way to force *all* existing terms to
be split.
I assume that this will happen during a WordPress upgrade, perhaps in the
`update_to_420()` function. The update can use the existing
`_split_shared_term()` function, but it should probably skip the per-term
cache flushing (which could slow down the process considerably on some
setups). Or it might be faster to write a new bulk migration routine.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30261>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list