[wp-meta] [Making WordPress.org] #5971: Plugin Directory: Custom Block Names not being listed right
Making WordPress.org
noreply at wordpress.org
Tue Jan 4 23:53:24 UTC 2022
#5971: Plugin Directory: Custom Block Names not being listed right
------------------------------+---------------------
Reporter: Ipstenu | Owner: (none)
Type: defect | Status: new
Priority: normal | Milestone:
Component: Plugin Directory | Resolution:
Keywords: |
------------------------------+---------------------
Comment (by ryelle):
I updated some of the validation and parsing in [11410], and I can answer
some questions better now :)
The block.json file needs to be valid to import block data. If you have
block.json files, the code only looks at those, and they need to pass
validation/have the required fields - including either `script` or
`editorScript`.
For example, using @hztyfoon's Essential Blocks,
[https://wordpress.org/plugins/developers/block-plugin-
validator/?plugin_url=essential-blocks there are some validation errors],
but they're all "At least one of the following properties must be present:
script, editorScript". So if you add `"editorScript": "accordion-block-
editor"` to `blocks/accordion/block.json` (and so on) it should start
parsing correctly.
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/5971#comment:12>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list