Make WordPress Core


Ignore:
Timestamp:
09/20/2022 02:49:25 AM (2 years 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-includes/ms-deprecated.php

    r53458 r54240  
    731731    return $value;
    732732}
     733/**
     734 * Determines whether global terms are enabled.
     735 *
     736 * @since 3.0.0
     737 * @since 6.1.0 This function now always returns false.
     738 * @deprecated 6.1.0
     739 *
     740 * @return bool Always returns false.
     741 */
     742function global_terms_enabled() {
     743    _deprecated_function( __FUNCTION__, '6.1.0' );
     744
     745    return false;
     746}
     747
     748/**
     749 * Maintains a canonical list of terms by syncing terms created for each blog with the global terms table.
     750 *
     751 * @since 3.0.0
     752 * @since 6.1.0 This function no longer does anything.
     753 * @deprecated 6.1.0
     754 *
     755 * @param int    $term_id    An ID for a term on the current blog.
     756 * @param string $deprecated Not used.
     757 * @return int An ID from the global terms table mapped from $term_id.
     758 */
     759function global_terms( $term_id, $deprecated = '' ) {
     760    _deprecated_function( __FUNCTION__, '6.1.0' );
     761
     762    return $term_id;
     763}
Note: See TracChangeset for help on using the changeset viewer.