Blocks: use a single source of truth for blocks metadata #32602
Labels
Epic
Formerly "Primary Issue", or "Master Issue"
[Focus] Blocks
Issues related to the block editor, aka Gutenberg, and its extensions developed in Jetpack
[Plugin] Jetpack
Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/
[Pri] Normal
[Type] Enhancement
Changes to an existing feature — removing, adding, or changing parts of it
Following #32408, a
block.json
metadata file was created for each block so that wp.org could list them on the Jetpack plugin page. However, the block registration methods in both the back and front ends don't consider these files yet: they read metadata from an object that's exported in a JS file. Metadata is duplicated.The recommended method for block registration is to specify a path to a
block.json
file. We should try that and get rid of data that's not present in that file.Tasks
The text was updated successfully, but these errors were encountered: