-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Fix: Restore static properties on deprecated __experimentalLinkControl #69860
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
Fix: Restore static properties on deprecated __experimentalLinkControl #69860
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Thanks for the PR! We have decided NOT to export the following sub-components from the deprecated component:
See #56384 (comment) This decision may also apply to |
Although these sub-components are not exported, they still exist within |
You are right. We might need to consider whether we should backport this PR into WP 6.8. Otherwise the following code causes a critical error: __experimentalLinkControl.DEFAULT_LINK_SETTINGS
__experimentalLinkControl.ViewerFill |
@t-hamano, looks good to merge. Do mind handling that? |
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.
#69860) Co-authored-by: karthikeya-io <karthikeya01@git.wordpress.org> Co-authored-by: Mamaduka <mamaduka@git.wordpress.org> Co-authored-by: t-hamano <wildworks@git.wordpress.org>
I just cherry-picked this PR to the wp/6.8 branch to get it included in the next release: d521010 |
WordPress#69860) Co-authored-by: karthikeya-io <karthikeya01@git.wordpress.org> Co-authored-by: Mamaduka <mamaduka@git.wordpress.org> Co-authored-by: t-hamano <wildworks@git.wordpress.org>
What?
Closes #69861
Fixes the error while using the
__experimentalLinkControl
and accessing its static properties likeDEFAULT_LINK_SETTINGS
.Why?
The
__experimentalLinkControl
was stabilized asLinkControl
in PR #56384. Following this change, using__experimentalLinkControl
in blocks leads to errors because it lacks the necessary static properties. This can create issues in custom blocks that still utilize__experimentalLinkControl
. This PR addresses the issue by adding those static properties toDeprecatedExperimentalLinkControl
.How?
Testing Instructions
__experimentalLinkControl
and accessDEFAULT_LINK_SETTINGS
or update the core button block
gutenberg/packages/block-library/src/button/edit.js
Line 40 in b17d1ca
to previously used
__experimentalLinkControl
Testing Instructions for Keyboard
Same
Screenshots or screencast