-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Elements API updates backport #3206
Elements API updates backport #3206
Conversation
While trying to fix the tests I found a bug that wasn't caught in GB because the test is only on core, not in the GB repo. I'm going to try and patch that so we can add it to this one or we could "hack" the snapshot and then patch afterwards. I'm more inclined to do the former. |
This is the fix for the issue that the tests uncovered. Edit: merged and backported here too |
… #40889 Co-authored-by: Ben Dwyer <ben@scruffian.com>
Co-authored-by: Ben Dwyer <ben@scruffian.com>
Co-authored-by: Ben Dwyer <ben@scruffian.com> Co-authored-by: Dave Smith <getdavemail@gmail.com> Co-authored-by: Adam Zielinski <adam@adamziel.com>
Co-authored-by: Ben Dwyer <ben@scruffian.com> Co-authored-by: George Mamadashvili <georgemamadashvili@gmail.com>
Co-authored-by: Ben Dwyer <ben@scruffian.com> Co-authored-by: Andrei Draganescu <andrei.draganescu@automattic.com>
Co-authored-by: Ben Dwyer <ben@scruffian.com> Co-authored-by: Dave Smith <getdavemail@gmail.com> Co-authored-by: Adam Zielinski <adam@adamziel.com>
Co-authored-by: Ben Dwyer <ben@scruffian.com>
Co-authored-by: Ben Dwyer <ben@scruffian.com> Co-authored-by: David Calhoun <438664+dcalhoun@users.noreply.github.com>
…2072 Co-authored-by: Dave Smith <getdavemail@gmail.com>
Co-authored-by: Dave Smith <getdavemail@gmail.com>
… #42669 Co-authored-by: Ben Dwyer <ben@scruffian.com>
Co-authored-by: Ben Dwyer <ben@scruffian.com>
Co-authored-by: George Mamadashvili <georgemamadashvili@gmail.com>
…blocks on public pages (#41335) * Adding the code existing in a previous version of this file, inside this loop: https://github.com/WordPress/gutenberg/blob/9c1c67bba4ba0dc7b241639719c567a364a8ea05/lib/compat/wordpress-6.0/class-wp-theme-json-6-0.php#L320 * Avoid repeating code * linting
Co-authored-by: Glen Davies <glen.davies@a8c.com> Co-authored-by: Ben Dwyer <ben@scruffian.com>
32d5e2c
to
a7283ec
Compare
this only needs a review and check what's breaking the tests (they are all passing locally) |
The tests previously failed on PHP 5.6 with a fatal error: 0015d99 should resolve the issue. We already used |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me 👍 Made some minor adjustments to documentation and unit tests for consistency with the rest of core. Going to merge shortly.
Thanks for the PR! Merged in r54118. |
Thanks a lot, folks! I was alerted that unfortunately, r54118 caused a fatal error on websites running Core
We'll need to add a Unfortunately, this won't fix the problem immediately: WP sites running Core I'm not sure how to best cover the latter case. For mitigation, we might want to consider reverting r54118 (as much as it pains me to suggest that) -- at least until a GB version with the fix is released. Going forward, we should probably put some strategies in place to avoid collisions like this:
Anyway, this is something we'll discuss separately. I'll file one or two issues tomorrow. |
Update: Unbeknownst to me, the |
This PR backports the following changes:
elements
in theme json gutenberg#41786Trac ticket: https://core.trac.wordpress.org/ticket/56467
This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.