-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Webfonts: enqueue fonts listed in theme.json #39988
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
6dddb53
Register webfonts declared in theme.json
zaguiini d80dba4
Add registered webfonts to theme.json
zaguiini 0d64aab
Enqueue webfonts listed in theme.json
zaguiini b527cd7
Do not run gutenberg_add_registered_webfonts_to_theme_json unless ope…
zaguiini 62e0e6d
Extract utility functions into their own help files
zaguiini 9c2c42b
Escape font face attributes when echoing errors
zaguiini 1f63722
Add tests
zaguiini c89e70d
Inline gutenberg_map_font_family_indexes
zaguiini de27be0
Make array key transformation functions more generic
zaguiini 3c1c444
Make helper functions used in Webfonts API private
zaguiini ed7e81c
Rename _gutenberg_register_webfonts_from_theme_json function
aristath a7d7c51
function_exists condition for _wp_register_webfonts_from_theme_json
aristath 5caadad
Rename _gutenberg_enqueue_webfonts_listed_in_theme_json function
aristath c5a5b2b
Add function_exists check for _wp_enqueue_webfonts_listed_in_theme_json
aristath 6a59c6c
Rename _gutenberg_add_registered_webfonts_to_theme_json function
aristath 182507b
Add function_exists check for _wp_add_registered_webfonts_to_theme_json
aristath 7f13181
Fix registering webfonts from styles variations
aristath 0319d5b
Update lib/experimental/register-webfonts-from-theme-json.php
aristath ef407bd
Update lib/experimental/add-registered-webfonts-to-theme-json.php
aristath 658b6ee
Rename unregister_font_family to remove_font_family
aristath bea59de
Update lib/experimental/webfonts-utils.php
aristath f55f4da
This has changed
aristath ae4238f
fix indentation
aristath dc14844
Fixes undefined index notice in _gutenberg_is_webfont_equal().
hellofromtonya bd4259e
Uses each `fontFaces` font-family for enqueuing.
hellofromtonya 01abcde
Fixes failing test and updates test for Core coding standards.
hellofromtonya 39d88e5
Prepped to WP Core coding standards.
hellofromtonya b36c647
Revert "Update lib/experimental/webfonts-utils.php"
aristath d6bbb43
Mark functions as private
aristath 779cece
missed this one
aristath 606373b
prefix stylesheet handles with 'wp-'
aristath 1c0e508
Rename function to _wp_resolve_font_face_uri
aristath 260156a
we don't need a separate function is_webfont_equal
aristath b2eb078
move find_webfont function to the WP_Webfonts class
aristath 0de1117
The _wp_resolve_font_face_uri function is only used once. Can be removed
aristath e2fe01c
The array_keys_to_camel_case function can be removed
aristath e94fffa
Remove the _gutenberg_is_externally_registered_webfont function
aristath File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Revert "Update lib/experimental/webfonts-utils.php"
This reverts commit bea59de.
- Loading branch information
commit b36c64777b5c28fb1e7e801e6fb770106d731d78
There are no files selected for viewing
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
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.
Uh oh!
There was an error while loading. Please reload this page.