Pattern Directory: Merge Core locale, caching updates#33052
Pattern Directory: Merge Core locale, caching updates#33052ryelle merged 4 commits intoWordPress:trunkfrom
Conversation
d83c6b7 to
52120d8
Compare
|
The workflow failures are just the e2e tests timing out, they even do that locally. Seems like that's normal lately 🤷🏻♂️ |
52120d8 to
c3fe41f
Compare
|
Hi, @iandunn I think There were some issues with e2e tests, but I think rebase should fix it. |
c3fe41f to
869e58e
Compare
|
Ah, I only intended to backport the commits I made for https://core.trac.wordpress.org/ticket/53435. It looks like previous backports have rewritten Core code in a different way, and I don't have all the context about the "query" patterns, categories, etc. That makes it more difficult to backport other changes, but I've added the filter in 869e58e8. I've also rebased to fix the e2e tests. Beyond that, I'd prefer to keep the scope of this PR limited to the commits I have experience with, and let others backport anything they worked on. |
ryelle
left a comment
There was a problem hiding this comment.
Seems to be working as expected on a 5.7 site - tried in English and Japanese, got the correct localized patterns back. Just the one note about since.
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 <dion@wordpress.org> Co-authored-by: Kelly Dwan <ryelle@users.noreply.github.com> Co-authored-by: tellyworth <alex@automattic.com>
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 <ocean90@git.wordpress.org> Co-authored-by: Dion Hulse <dion@wordpress.org> Co-authored-by: Timothy Jacobs <timothyblynjacobs@git.wordpress.org>
The tests were failing in `wp-env` because the latest Core updates had not been backported, so they were disabled in WordPress#32228. Now that the updates are backported, the tests pass again.
…ter. 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 <ryelle@users.noreply.github.com>
869e58e to
1bafaa4
Compare
Description
Merges https://core.trac.wordpress.org/changeset/51206 and https://core.trac.wordpress.org/changeset/51208, so the bundled versions of Core files are up to date with Core
5.8-beta4Fixes #32754
How has this been tested?
Manual testing:
api.wordpress.orgto a w.org sandbox via/etc/hosts/(if applicable)pre_http_requestfilter, etc.Checklist:
*.native.jsfiles for terms that need renaming or removal).