Make WordPress Core

Changeset 54283


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.

Location:
trunk/src/wp-includes
Files:
2 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}
  • trunk/src/wp-includes/ms-deprecated.php

    r54240 r54283  
    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  */
    742 function global_terms_enabled() {
    743     _deprecated_function( __FUNCTION__, '6.1.0' );
    744 
    745     return false;
    746 }
    747733
    748734/**
Note: See TracChangeset for help on using the changeset viewer.