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/includes/ms-deprecated.php

    r45932 r54240  
    109109 */
    110110function ms_deprecated_blogs_file() {}
     111
     112if ( ! function_exists( 'install_global_terms' ) ) :
     113    /**
     114     * Install global terms.
     115     *
     116     * @since 3.0.0
     117     * @since 6.1.0 This function no longer does anything.
     118     * @deprecated 6.1.0
     119     */
     120    function install_global_terms() {
     121        _deprecated_function( __FUNCTION__, '6.1.0' );
     122    }
     123endif;
     124
     125/**
     126 * Synchronizes category and post tag slugs when global terms are enabled.
     127 *
     128 * @since 3.0.0
     129 * @since 6.1.0 This function no longer does anything.
     130 * @deprecated 6.1.0
     131 *
     132 * @param WP_Term|array $term     The term.
     133 * @param string        $taxonomy The taxonomy for `$term`.
     134 * @return WP_Term|array Always returns `$term`.
     135 */
     136function sync_category_tag_slugs( $term, $taxonomy ) {
     137    _deprecated_function( __FUNCTION__, '6.1.0' );
     138
     139    return $term;
     140}
Note: See TracChangeset for help on using the changeset viewer.