[wp-trac] [WordPress Trac] #55979: wp_sitecategories does not account for different taxonomy
WordPress Trac
noreply at wordpress.org
Tue Jun 14 22:55:04 UTC 2022
#55979: wp_sitecategories does not account for different taxonomy
--------------------------------+-------------------------------
Reporter: axelseaa | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Networks and Sites | Version: trunk
Severity: major | Keywords: changes-requested
Focuses: multisite |
--------------------------------+-------------------------------
We have a legacy version of WordPressMU (Now MultiSite) that had
global_terms_enabled in the wp_sitemeta table.
When this is enabled, if the same term name is added to different
taxonomies (for example - tags and categories), the global_terms function
in wp-includes/ms-functions.php will update the value of the last entered
term, which will cause duplicate term ID errors (see
https://stackoverflow.com/posts/72523491)
This line is the to blame - only checking the nice name, and not the ID.
https://github.com/WordPress/WordPress/blob/73a2d87eaea88a16b45bbe2867df5fb856d55414
/wp-includes/ms-functions.php#L2085
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55979>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list