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

Blocks: switch away from __experimentalBlock to useBlockProps #18864

Closed
2 tasks done
jeherve opened this issue Feb 17, 2021 · 6 comments · Fixed by #19913
Closed
2 tasks done

Blocks: switch away from __experimentalBlock to useBlockProps #18864

jeherve opened this issue Feb 17, 2021 · 6 comments · Fixed by #19913
Assignees
Labels
[Block] Paid Content aka Premium Content [Block] VideoPress [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ [Pri] Normal [Type] Janitorial
Milestone

Comments

@jeherve
Copy link
Member

jeherve commented Feb 17, 2021

WordPress 5.6 (soon to be required to use the Jetpack plugin) introduces the following change:
https://make.wordpress.org/core/2020/11/18/block-api-version-2/

It will allow us to switch away from __experimentalBlock to useBlockProps for some of our blocks.

Matching Gutenberg change:
WordPress/gutenberg#31419


Primary issues: #18842 (5.7), #19654 (5.8)

@andrewserong
Copy link
Member

@jeherve just double checking, it looks like WordPress 5.6 is the required minimum version of WordPress for the Jetpack plugin. I assume this means we can move over to using useBlockProps directly without having to guard it behind a check / maintain the existing __experimentalBlock for backwards compatibility?

@jeherve
Copy link
Member Author

jeherve commented May 13, 2021

@andrewserong Yes, correct. In addition to that, we can aim to have this issue closed by the time WordPress 5.8 is available (Jetpack 9.9); by then, Jetpack will require WP 5.7.

@andrewserong
Copy link
Member

Great, thanks for confirming!

@roundhill
Copy link
Contributor

@jeherve has anyone on Jetpack taken on the Video block changes? If not we'll handle it 😄

@jeherve
Copy link
Member Author

jeherve commented May 19, 2021

Noone has looked at it yet, no. I'll be happy if you do :)

@roundhill
Copy link
Contributor

Video block is ready for review: #19913

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Paid Content aka Premium Content [Block] VideoPress [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ [Pri] Normal [Type] Janitorial
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants