Skip to content
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 Apr 4, 2022
d80dba4
Add registered webfonts to theme.json
zaguiini Apr 5, 2022
0d64aab
Enqueue webfonts listed in theme.json
zaguiini Apr 5, 2022
b527cd7
Do not run gutenberg_add_registered_webfonts_to_theme_json unless ope…
zaguiini Apr 7, 2022
62e0e6d
Extract utility functions into their own help files
zaguiini Apr 7, 2022
9c2c42b
Escape font face attributes when echoing errors
zaguiini Apr 7, 2022
1f63722
Add tests
zaguiini Apr 8, 2022
c89e70d
Inline gutenberg_map_font_family_indexes
zaguiini Apr 13, 2022
de27be0
Make array key transformation functions more generic
zaguiini Apr 13, 2022
3c1c444
Make helper functions used in Webfonts API private
zaguiini Apr 13, 2022
ed7e81c
Rename _gutenberg_register_webfonts_from_theme_json function
aristath Apr 18, 2022
a7d7c51
function_exists condition for _wp_register_webfonts_from_theme_json
aristath Apr 18, 2022
5caadad
Rename _gutenberg_enqueue_webfonts_listed_in_theme_json function
aristath Apr 18, 2022
c5a5b2b
Add function_exists check for _wp_enqueue_webfonts_listed_in_theme_json
aristath Apr 18, 2022
6a59c6c
Rename _gutenberg_add_registered_webfonts_to_theme_json function
aristath Apr 18, 2022
182507b
Add function_exists check for _wp_add_registered_webfonts_to_theme_json
aristath Apr 18, 2022
7f13181
Fix registering webfonts from styles variations
aristath Apr 18, 2022
0319d5b
Update lib/experimental/register-webfonts-from-theme-json.php
aristath Apr 19, 2022
ef407bd
Update lib/experimental/add-registered-webfonts-to-theme-json.php
aristath Apr 19, 2022
658b6ee
Rename unregister_font_family to remove_font_family
aristath Apr 19, 2022
bea59de
Update lib/experimental/webfonts-utils.php
aristath Apr 19, 2022
f55f4da
This has changed
aristath Apr 19, 2022
ae4238f
fix indentation
aristath Apr 19, 2022
dc14844
Fixes undefined index notice in _gutenberg_is_webfont_equal().
hellofromtonya Apr 19, 2022
bd4259e
Uses each `fontFaces` font-family for enqueuing.
hellofromtonya Apr 19, 2022
01abcde
Fixes failing test and updates test for Core coding standards.
hellofromtonya Apr 19, 2022
39d88e5
Prepped to WP Core coding standards.
hellofromtonya Apr 19, 2022
b36c647
Revert "Update lib/experimental/webfonts-utils.php"
aristath Apr 20, 2022
d6bbb43
Mark functions as private
aristath Apr 20, 2022
779cece
missed this one
aristath Apr 20, 2022
606373b
prefix stylesheet handles with 'wp-'
aristath Apr 20, 2022
1c0e508
Rename function to _wp_resolve_font_face_uri
aristath Apr 20, 2022
260156a
we don't need a separate function is_webfont_equal
aristath Apr 20, 2022
b2eb078
move find_webfont function to the WP_Webfonts class
aristath Apr 20, 2022
0de1117
The _wp_resolve_font_face_uri function is only used once. Can be removed
aristath Apr 20, 2022
e2fe01c
The array_keys_to_camel_case function can be removed
aristath Apr 20, 2022
e94fffa
Remove the _gutenberg_is_externally_registered_webfont function
aristath Apr 20, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Revert "Update lib/experimental/webfonts-utils.php"
This reverts commit bea59de.
  • Loading branch information
aristath committed Apr 20, 2022
commit b36c64777b5c28fb1e7e801e6fb770106d731d78
2 changes: 1 addition & 1 deletion lib/experimental/webfonts-utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ function _wp_array_keys_to_camel_case( array $to_transform ) {
$camel_cased_array = array();

foreach ( $to_transform as $key => $value ) {
$camel_cased_array[ _wp_to_kebab_case( $key ) ] = $value;
$camel_cased_array[ lcfirst( str_replace( '-', '', ucwords( $key, '-' ) ) ) ] = $value;
}

return $camel_cased_array;
Expand Down