Remove deprecated Gutenberg Fonts API workaround#1666
Open
dd32 wants to merge 1 commit into
Open
Conversation
Remove the inject_fonts_theme_json method and its wp_theme_json_data_theme filter hook. This was a temporary workaround added when the core Font Library was not yet available on WordCamp.org (marked with a @todo to remove when Gutenberg 17.6 was rolled out). Gutenberg is now at 22.6, well past that milestone. The hardcoded fonts for WC Europe 2024 and WC Asia 2024 are for past events and no longer needed. This also removes usage of deprecated _wp_array_get and _wp_array_set functions. Fixes #1549 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
3 tasks
Member
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
inject_fonts_theme_jsonmethod and itswp_theme_json_data_themefilter from the wc-fonts plugin@todoto remove it when Gutenberg 17.6 was rolled out) for injecting custom fonts before the core Font Library was available_wp_array_getand_wp_array_setwhich are deprecated since WP 6.7Fixes #1549
Test plan
Generated with Claude Code