Make WordPress Core


Ignore:
Timestamp:
09/21/2022 07:46:40 PM (2 years ago)
Author:
desrosj
Message:

Network and Sites: Move global_terms_enabled() to its proper final resting place.

When initially deprecated in [54240], global_terms_enabled() was incorrectly moved to the wp-includes/ms-deprecated.php file. This file is only loaded for multisite installs.

The function previously lived in wp-includes/functions.php, which is loaded for all sites. The proper deprecated file is wp-includes/deprecated.php.

Props vikasprogrammer, davidbaumwald, courane01, desrosj.
Fixes #21734.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/deprecated.php

    r54260 r54283  
    44974497    return sprintf( '%s:var(--wp--preset--%s--%s);', $css_property, $css_property, $slug );
    44984498}
     4499
     4500/**
     4501 * Determines whether global terms are enabled.
     4502 *
     4503 * @since 3.0.0
     4504 * @since 6.1.0 This function now always returns false.
     4505 * @deprecated 6.1.0
     4506 *
     4507 * @return bool Always returns false.
     4508 */
     4509function global_terms_enabled() {
     4510    _deprecated_function( __FUNCTION__, '6.1.0' );
     4511
     4512    return false;
     4513}
Note: See TracChangeset for help on using the changeset viewer.