Skip to content

Conversation

schlessera
Copy link
Member

Tests have been failing for WP trunk during the WP 6.1 development cycle because the global_terms_enabled() function has been incorrectly deprecated.

This PR internalizes that function to avoid errors.

See https://core.trac.wordpress.org/ticket/21734#comment:34

@schlessera schlessera requested a review from a team as a code owner October 12, 2022 00:14
@schlessera schlessera added this to the 2.7.0 milestone Oct 12, 2022
@schlessera schlessera merged commit a076ead into master Oct 12, 2022
@schlessera schlessera deleted the fix/missing-global-terms-enabled branch October 12, 2022 01:21
@desrosj
Copy link
Member

desrosj commented Oct 14, 2022

because the global_terms_enabled() function has been incorrectly deprecated.

@schlessera could you suggest an alternative approach?

Would not triggering a deprecated notice here be preferred? While I acknowledge that the plugin directory is only a subset of the code running on WordPress, there's only 34 occurrences across 20 plugins currently in the directory representing ~230k sites.

Throwing a deprecated notice for the most used function related to global terms seemed like a good way to notify developers that they should adjust their code accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants