-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
[WP6.2] Revert dynamic block anchor support #48592
Conversation
I think there's no need to keep PHP changes in the |
Makes sense, reverted. |
Flaky tests detected in 235f68e. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4300157637
|
The E2E test is failing but does not appear to be related to this PR. |
6d71513
to
235f68e
Compare
Rebased the branch. The issue should be fixed after this backport #48206 (comment). |
Thanks for the response, @Mamaduka! I would like to start with the following next steps.
|
@t-hamano, I already handled that this morning - https://core.trac.wordpress.org/ticket/57830#ticket. |
[55230] introduced a regression to the content markup. This changeset is a partial revert to remove the added `wp-includes/block-supports/anchor.php` file. The change of adding `'id'` to `$attributes_to_merge` in `get_block_wrapper_attributes()` is not reverted as this change did not impact the regression and helps to support continue development in Gutenberg for the anchor support in dynamic blocks feature. Reference: * [WordPress/gutenberg#48592 Gutenberg PR 48592]. Follow-up [55230]. Props wildworks, mamaduka, hellofromTonya. Fixes #57830. See #56852. git-svn-id: https://develop.svn.wordpress.org/trunk@55443 602fd350-edb4-49c9-b593-d223f7449a82
[55230] introduced a regression to the content markup. This changeset is a partial revert to remove the added `wp-includes/block-supports/anchor.php` file. The change of adding `'id'` to `$attributes_to_merge` in `get_block_wrapper_attributes()` is not reverted as this change did not impact the regression and helps to support continue development in Gutenberg for the anchor support in dynamic blocks feature. Reference: * [WordPress/gutenberg#48592 Gutenberg PR 48592]. Follow-up [55230]. Props wildworks, mamaduka, hellofromTonya. Fixes #57830. See #56852. Built from https://develop.svn.wordpress.org/trunk@55443 git-svn-id: http://core.svn.wordpress.org/trunk@54976 1a063a9b-81f0-0310-95a4-ce76da25c4cd
[55230] introduced a regression to the content markup. This changeset is a partial revert to remove the added `wp-includes/block-supports/anchor.php` file. The change of adding `'id'` to `$attributes_to_merge` in `get_block_wrapper_attributes()` is not reverted as this change did not impact the regression and helps to support continue development in Gutenberg for the anchor support in dynamic blocks feature. Reference: * [WordPress/gutenberg#48592 Gutenberg PR 48592]. Follow-up [55230]. Props wildworks, mamaduka, hellofromTonya. Fixes #57830. See #56852. Built from https://develop.svn.wordpress.org/trunk@55443 git-svn-id: https://core.svn.wordpress.org/trunk@54976 1a063a9b-81f0-0310-95a4-ce76da25c4cd
[55230] introduced a regression to the content markup. This changeset is a partial revert to remove the added `wp-includes/block-supports/anchor.php` file. The change of adding `'id'` to `$attributes_to_merge` in `get_block_wrapper_attributes()` is not reverted as this change did not impact the regression and helps to support continue development in Gutenberg for the anchor support in dynamic blocks feature. Reference: * [WordPress/gutenberg#48592 Gutenberg PR 48592]. Follow-up [55230]. Props wildworks, mamaduka, hellofromTonya. Fixes #57830. See #56852. Built from https://develop.svn.wordpress.org/trunk@55443 git-svn-id: http://core.svn.wordpress.org/trunk@54976 1a063a9b-81f0-0310-95a4-ce76da25c4cd
What?
This PR removes
anchor
support fromblock.json
in dynamic blocks, among changes made in #44771.Why?
As reported by #48232, a problem was found in backward compatibility. A resolution was attempted in #48438, but more discussion and exploration are needed, so we have decided to revert this feature in the WordPress 6.2 release.
How?
As noted in this comment, we will follow these steps:
block.json
anchor support from Add anchor support for dynamic blocks #44771.block-supports/anchor.php
from the core.$attributes_to_merge
change in the core so that the feature can be implemented from the plugin.This PR falls under the first step of the above.
First of all, I reverted the commit made in #44771. Then I re-added the PHP and documentation changes that did not need to be changed in this step.