Make WordPress Core


Ignore:
Timestamp:
09/20/2022 02:49:25 AM (21 months ago)
Author:
desrosj
Message:

Networks and Sites: Officially remove global terms.

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-tags.php

    r53913 r54240  
    281281        '<li>' . __( '<strong>Name</strong> &mdash; The name is how it appears on your site.' ) . '</li>';
    282282
    283         if ( ! global_terms_enabled() ) {
    284             $help .= '<li>' . __( '<strong>Slug</strong> &mdash; The &#8220;slug&#8221; is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.' ) . '</li>';
    285         }
     283        $help .= '<li>' . __( '<strong>Slug</strong> &mdash; The &#8220;slug&#8221; is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.' ) . '</li>';
    286284
    287285        if ( 'category' === $taxonomy ) {
     
    457455    <p id="name-description"><?php echo $tax->labels->name_field_description; ?></p>
    458456</div>
    459     <?php if ( ! global_terms_enabled() ) : ?>
    460457<div class="form-field term-slug-wrap">
    461458    <label for="tag-slug"><?php _e( 'Slug' ); ?></label>
     
    463460    <p id="slug-description"><?php echo $tax->labels->slug_field_description; ?></p>
    464461</div>
    465 <?php endif; // global_terms_enabled() ?>
    466462    <?php if ( is_taxonomy_hierarchical( $taxonomy ) ) : ?>
    467463<div class="form-field term-parent-wrap">
Note: See TracChangeset for help on using the changeset viewer.