10up / ElasticPress

A fast and flexible search and query engine for WordPress.
https://elasticpress.io
GNU General Public License v2.0
1.24k stars 312 forks source link

Adopt Block API version 3 #3853

Open JakePT opened 6 months ago

JakePT commented 6 months ago

Is your enhancement related to a problem? Please describe.

As of WordPress 6.3:

The post editor will be iframed if all registered blocks have a Block API version 3 or higher and the editor has no classic meta boxes below the blocks. Adding version 3 support means that the block should work inside an iframe, though the block may still be rendered outside the iframe if not all blocks support version 3.

Since ElasticPress' blocks use version 2, it will prevent this behaviour for sites that are otherwise compatible.

The only work involved is increasing the version number and verifying that the blocks work as expected in an iframe. ElasticPress' blocks do not do anything that wouldn't work in an iframe, so I don't anticipate any more work than that.

Designs

No response

Describe alternatives you've considered

No response

Code of Conduct