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

Add support for GB 9.2 / WP 5.6 with useBlockProps #88

Merged
merged 6 commits into from
Oct 24, 2020
Merged

Conversation

mkaz
Copy link
Owner

@mkaz mkaz commented Oct 17, 2020

The previous useLightWrapper is being switched out for useBlockProps in GB 9.2, that will also be in WP 5.6.

This PR adds an additional check for support and uses the latest version of wrapping the component to support the upcoming version, current WP 5.5, and previous versions.

@mkaz
Copy link
Owner Author

mkaz commented Oct 17, 2020

@westonruter You'll likely need the same update in your plugin, also a sanity check would be great if you could confirm it works for you. 👍

src/edit.js Outdated Show resolved Hide resolved
westonruter added a commit to westonruter/syntax-highlighting-code-block that referenced this pull request Oct 19, 2020
westonruter added a commit to westonruter/syntax-highlighting-code-block that referenced this pull request Oct 19, 2020
src/edit.js Outdated Show resolved Hide resolved
src/save.js Outdated Show resolved Hide resolved
- Add RichText support for GB 9.2
- Fix up backwards compatibility for pre 5.5
@mkaz mkaz merged commit 12fd15c into trunk Oct 24, 2020
@mkaz mkaz deleted the fix/use-block-props branch October 24, 2020 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants