Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Font Collections: lazy load json configuration for better performance (…
…#58530) * Font Collections: lazy load json configuration for better performance * Use explicit get_data method for font collections and restore WP_Error returns * Do all loading and data validation in WP_Font_Collection::get_data * Refactored the Font Collection class unit tests * Fix test - suppress file loading error to test get_data() error response * Fix linting errors * Move tests back to one file per method and align with standards * Remove outdated test * Remove test file not wanted from rebase * When getting collections from the REST API, only return valid collections * Update test to use wp_json_encode * Update google fonts collection url to release version Still using the Github url until s.w.org is updated. * Revert "Update google fonts collection url to release version" This reverts commit 4cc23a5. * Fix collection controller test --------- Co-authored-by: Jason Crist <jcrist@pbking.com> Co-authored-by: creativecoder <grantmkin@git.wordpress.org> Co-authored-by: pbking <pbking@git.wordpress.org> Co-authored-by: youknowriad <youknowriad@git.wordpress.org> Co-authored-by: matiasbenedetto <mmaattiiaass@git.wordpress.org>
- Loading branch information
1 parent
eb05364
commit 0ec7554
Showing
11 changed files
with
454 additions
and
371 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.