mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-03 08:40:10 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@54283 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -4496,3 +4496,18 @@ function wp_typography_get_css_variable_inline_style( $attributes, $feature, $cs
|
||||
// Return the actual CSS inline style e.g. `text-decoration:var(--wp--preset--text-decoration--underline);`.
|
||||
return sprintf( '%s:var(--wp--preset--%s--%s);', $css_property, $css_property, $slug );
|
||||
}
|
||||
|
||||
/**
|
||||
* Determines whether global terms are enabled.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @since 6.1.0 This function now always returns false.
|
||||
* @deprecated 6.1.0
|
||||
*
|
||||
* @return bool Always returns false.
|
||||
*/
|
||||
function global_terms_enabled() {
|
||||
_deprecated_function( __FUNCTION__, '6.1.0' );
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -730,20 +730,6 @@ function update_user_status( $id, $pref, $value, $deprecated = null ) {
|
||||
|
||||
return $value;
|
||||
}
|
||||
/**
|
||||
* Determines whether global terms are enabled.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @since 6.1.0 This function now always returns false.
|
||||
* @deprecated 6.1.0
|
||||
*
|
||||
* @return bool Always returns false.
|
||||
*/
|
||||
function global_terms_enabled() {
|
||||
_deprecated_function( __FUNCTION__, '6.1.0' );
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Maintains a canonical list of terms by syncing terms created for each blog with the global terms table.
|
||||
|
||||
Reference in New Issue
Block a user