-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add caching to WP_Theme_JSON_Resolver_Gutenberg::get_user_data_from_c…
…ustom_post_type() (#36584) * Add caching to WP_Theme_JSON_Resolver_Gutenberg::get_user_data_from_custom_post_type Refactor `WP_Theme_JSON_Resolver_Gutenberg::get_user_data_from_custom_post_type` to add caching to the `wp_global_styles` post type lookup, and also to remove the duplicate code added in `gutenberg_add_active_global_styles_link`. Fixes #36574 * Add unit tests * Use the correct query filter * Use wp_cache_set instead of wp_cache_add. * Remove the filter when finished. * Simplify the if blocks
- Loading branch information
1 parent
e70a021
commit 7d38aa0
Showing
3 changed files
with
75 additions
and
37 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