[wp-meta] [Making WordPress.org] #6170: Ignore blocks with variables in the name.

Making WordPress.org noreply at wordpress.org
Tue Mar 8 02:00:32 UTC 2022

#6170: Ignore blocks with variables in the name.
 Reporter:  dd32              |      Owner:  (none)
     Type:  defect            |     Status:  new
 Priority:  normal            |  Milestone:
Component:  Plugin Directory  |   Keywords:
 As mentioned in
 [https://wordpress.slack.com/archives/C1LBM36LC/p1646703454060329 slack],
 [https://wordpress.org/plugins/floating-share-button/ this plugin] shows a
 block defined where the author didn't intentionally add one.

 A framework used by the plugin turns out to call `register_block_type()`
 with a variable block name, and ultimately ends up with a truncated block
 name as a result of it.

 We should explicitly ignore any blocks that appear to use variables in
 their name parameter if possible.

 Example code:

 Detected block: `csf-gutenberg-block/block-`

Ticket URL: <https://meta.trac.wordpress.org/ticket/6170>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org

More information about the wp-meta mailing list