Skip to content
This repository has been archived by the owner on Nov 2, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants