-
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.
Pattern Directory: Merge Core locale, caching updates (#33052)
* Pattern Directory: Send locale, version with remote pattern requests. This information is needed by the w.org API for translation and caching. Merges https://core.trac.wordpress.org/changeset/51206 See https://core.trac.wordpress.org/ticket/53435 Co-authored-by: Dion Hulse <[email protected]> Co-authored-by: Kelly Dwan <[email protected]> Co-authored-by: tellyworth <[email protected]> * Pattern Directory: Move caching to endpoint for unique responses. Now that the pattern API request includes the locale and version, the cache key needs to contain a hash of the query args. Merges https://core.trac.wordpress.org/changeset/51208 See https://core.trac.wordpress.org/ticket/53435 Co-authored-by: Dominik Schilling <[email protected]> Co-authored-by: Dion Hulse <[email protected]> Co-authored-by: Timothy Jacobs <[email protected]> * Pattern Directory: Enable PHPUnit tests. The tests were failing in `wp-env` because the latest Core updates had not been backported, so they were disabled in #32228. Now that the updates are backported, the tests pass again. * Pattern Directory: Add Core's `should_load_remote_block_patterns` filter. The filter was added to Core during the process of syncing it with Gutenberg, but wasn't backported to Gutenberg until now. See https://core.trac.wordpress.org/ticket/53246 Co-authored-by: Kelly Dwan <[email protected]> Co-authored-by: Dion Hulse <[email protected]> Co-authored-by: Kelly Dwan <[email protected]> Co-authored-by: tellyworth <[email protected]> Co-authored-by: Dominik Schilling <[email protected]> Co-authored-by: Timothy Jacobs <[email protected]>
- Loading branch information
1 parent
f463c8f
commit 2e872ff
Showing
3 changed files
with
154 additions
and
84 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
Oops, something went wrong.