From 7d87ce12c8406d177e086f83dfa8a26069cd61ca Mon Sep 17 00:00:00 2001 From: desrosj Date: Tue, 20 Sep 2022 02:51:09 +0000 Subject: [PATCH] Networks and Sites: Officially remove global terms. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Global terms was a feature from the WordPress MU days where multisite and single site installs used different code bases. In WordPress 3.0, WordPress MU was merged into one location and the UI [14854] and “on” switch [14880] for global terms were completely removed. Even before this merge, global terms was bug infested and unreliable. After [14854]/[14880], the feature was no longer maintained and became increasingly broken as taxonomies progressed without it (term splitting and term meta do not work at all). At this point, the feature has not worked in 12+ years and there’s no hope for saving it. This deprecates the remaining global terms related code and no-ops the functions. Global terms, you don’t have to go home, but you can’t stay here. Props scribu, wonderboymusic, SergeyBiryukov, nacin, pento, desrosj, johnjamesjacoby, johnbillion, dd32. Fixes #21734. Built from https://develop.svn.wordpress.org/trunk@54240 git-svn-id: http://core.svn.wordpress.org/trunk@53799 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/edit-tag-form.php | 2 - wp-admin/edit-tags.php | 6 +- .../includes/class-wp-terms-list-table.php | 10 +- wp-admin/includes/ms-admin-filters.php | 3 - wp-admin/includes/ms-deprecated.php | 30 ++++++ wp-admin/includes/ms.php | 23 ----- wp-admin/includes/schema.php | 1 - wp-admin/includes/upgrade.php | 46 +--------- wp-admin/network/settings.php | 1 - wp-includes/class-wpdb.php | 16 +++- wp-includes/functions.php | 35 ------- wp-includes/ms-default-filters.php | 1 - wp-includes/ms-deprecated.php | 31 +++++++ wp-includes/ms-functions.php | 91 ------------------- wp-includes/version.php | 2 +- 15 files changed, 83 insertions(+), 215 deletions(-) diff --git a/wp-admin/edit-tag-form.php b/wp-admin/edit-tag-form.php index 9b2110398c..494c15547b 100644 --- a/wp-admin/edit-tag-form.php +++ b/wp-admin/edit-tag-form.php @@ -148,7 +148,6 @@ if ( isset( $tag->name ) ) {

labels->name_field_description; ?>

- name ) ) {

labels->slug_field_description; ?>

- diff --git a/wp-admin/edit-tags.php b/wp-admin/edit-tags.php index abbc330b82..9812d97c76 100644 --- a/wp-admin/edit-tags.php +++ b/wp-admin/edit-tags.php @@ -280,9 +280,7 @@ if ( 'category' === $taxonomy || 'link_category' === $taxonomy || 'post_tag' === $help .= '