Skip to content
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 new interface package compatibility #168

Merged
merged 2 commits into from
Aug 31, 2021

Conversation

CGastrell
Copy link
Contributor

This PR adds a simple check to see if isFeatureActive is available and prioritize its use over getPreference( 'features' ).

Our use of getPreference( 'features' ) aimed to keep a watch on fullscreenMode but since WordPress/gutenberg#34154 this seems not available anymore.

Test instructions

Checkout and make client. Open the developer console and insert a Feedback Button on a post. There should be no errors regarding the block insertion.

…de to see if the new interface package is available and use isFeatureActive if it is
@CGastrell CGastrell self-assigned this Aug 31, 2021
@CGastrell CGastrell added the bug Something isn't working label Aug 31, 2021
Copy link

@digitalwaveride digitalwaveride left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error is gone 👍
image

@CGastrell CGastrell merged commit 02ef328 into master Aug 31, 2021
@CGastrell CGastrell deleted the fix/new-interface-package-compat branch August 31, 2021 19:14
@CGastrell CGastrell mentioned this pull request Sep 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants